This commit is contained in:
parent
1d23df110b
commit
b69277f133
@ -158,6 +158,7 @@ public abstract class BaseDownloadController : Controller
|
||||
Response.Headers.XFrameOptions = "SAMEORIGIN";
|
||||
Response.Headers.ContentDisposition = $"inline; filename=\"{meta?.Metadata?.Name}\"";
|
||||
Response.ContentType = meta?.Metadata?.MimeType ?? "application/octet-stream";
|
||||
Response.ContentLength = (long?)meta?.Metadata?.Size;
|
||||
|
||||
return meta;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user