From 6cb2e0b2064c023e884077bfdd8daab0d0801013 Mon Sep 17 00:00:00 2001 From: Julian Arni Date: Wed, 28 Aug 2013 11:13:20 -0400 Subject: [PATCH] Check extension rather than mimetype --- cms/templates/import.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cms/templates/import.html b/cms/templates/import.html index a5c6b9f412..27337bf235 100644 --- a/cms/templates/import.html +++ b/cms/templates/import.html @@ -72,7 +72,7 @@ $('#fileupload').fileupload({ add: function(e, data) { submitBtn.unbind('click'); var file = data.files[0]; - if (file.type == "application/x-gzip") { + if (file.name.match(/tar\.gz$/)) { submitBtn.click(function(e){ e.preventDefault(); submitBtn.hide();