1
0
Fork 0
mirror of synced 2024-08-15 18:11:40 +12:00

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

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.")
}