From 4745b6d2bde95e6d5d9a9e1619397bbb4275f606 Mon Sep 17 00:00:00 2001 From: Dean Date: Fri, 27 Jan 2023 18:01:12 +0000 Subject: [PATCH] Expanding mime check for cloud tarball import --- packages/server/src/api/controllers/cloud.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/api/controllers/cloud.ts b/packages/server/src/api/controllers/cloud.ts index be37bef641..7f43f21fc9 100644 --- a/packages/server/src/api/controllers/cloud.ts +++ b/packages/server/src/api/controllers/cloud.ts @@ -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.") }