Check extension rather than mimetype

This commit is contained in:
Julian Arni
2013-08-28 11:13:20 -04:00
parent cee44501f5
commit 6cb2e0b206

View File

@@ -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();