Expanding mime check for cloud tarball import
This commit is contained in:
parent
a403afb92c
commit
5538938c4f
|
@ -86,7 +86,7 @@ export async function importApps(ctx: Ctx) {
|
||||||
if (Array.isArray(file)) {
|
if (Array.isArray(file)) {
|
||||||
ctx.throw(400, "Single file is required")
|
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.")
|
ctx.throw(400, "Import file must be a gzipped tarball.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue