Merge pull request #819 from edx/jkarni/hotfix/gzip-mimetype

Check extension rather than mimetype
This commit is contained in:
jkarni
2013-08-28 09:52:36 -07:00

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