Commit 69da4417160461855783aa3ccd55f549e2b17089

Authored by Karpikau Andrei
1 parent 81b2c767

add mime type to file upload

@@ -1545,9 +1545,9 @@ var initAjaxFileUpload = function(selector){ @@ -1545,9 +1545,9 @@ var initAjaxFileUpload = function(selector){
1545 $('.' + class_name).find('.progress-bar').css('width', '0%'); 1545 $('.' + class_name).find('.progress-bar').css('width', '0%');
1546 }, 1546 },
1547 send: function(e, data){ 1547 send: function(e, data){
1548 - if(data.files[0].type == ''){  
1549 - data.formData['content-type'] = data.files[0].type;  
1550 - } 1548 + //if(data.files[0].type != ''){
  1549 + data.formData['content-type'] = data.files[0].type;
  1550 + //}
1551 }, 1551 },
1552 done: function (e, data) { 1552 done: function (e, data) {
1553 submitButton.prop('disabled', false); 1553 submitButton.prop('disabled', false);
1 module Kanjai 1 module Kanjai
2 - VERSION = "0.0.226" 2 + VERSION = "0.0.227"
3 end 3 end