This commit is contained in:
Kieran 2024-01-10 22:56:37 +00:00
parent 1d23df110b
commit b69277f133
No known key found for this signature in database
GPG Key ID: DE71CEB3925BE941

View File

@ -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;
}