Default mime to octet-stream

This commit is contained in:
Kieran 2023-04-04 11:22:00 +01:00
parent d6b7c574d2
commit 2c8d9a8241
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -73,6 +73,11 @@ namespace VoidCat.Controllers
} }
} }
if (string.IsNullOrEmpty(mime))
{
mime = "application/octet-stream";
}
// detect store for ingress // detect store for ingress
var store = _settings.DefaultFileStore; var store = _settings.DefaultFileStore;
if (uid.HasValue) if (uid.HasValue)