Expanding mime check for cloud tarball import

This commit is contained in:
Dean 2023-01-27 18:01:12 +00:00
parent 1534218c94
commit 4745b6d2bd
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ export async function importApps(ctx: Ctx) {
if (Array.isArray(file)) {
ctx.throw(400, "Single file is required")
}
if (file.type !== "application/gzip") {
if (file.type !== "application/gzip" && file.type !== "application/x-gzip") {
ctx.throw(400, "Import file must be a gzipped tarball.")
}