Skip to content

Commit

Permalink
Merge pull request #819 from edx/jkarni/hotfix/gzip-mimetype
Browse files Browse the repository at this point in the history
Check extension rather than mimetype
  • Loading branch information
jkarni committed Aug 28, 2013
2 parents cee4450 + 6cb2e0b commit fbb6dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/templates/import.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ <h2>${_("Course to import:")}</h2>
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();
Expand Down

0 comments on commit fbb6dc0

Please sign in to comment.