Merge pull request #819 from edx/jkarni/hotfix/gzip-mimetype
Check extension rather than mimetype
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user