Skip to content

Commit

Permalink
Strip local path when uploading (IE fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra authored and smotornyuk committed Jun 16, 2019
1 parent 36809c1 commit 9f3640e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ckan/public/base/javascript/modules/resource-upload-field.js
Expand Up @@ -197,6 +197,9 @@ this.ckan.module('resource-upload-field', function (jQuery, _, i18n) {
_onUploadAdd: function (event, data) {
this.uploading(true);
if (data.files && data.files.length) {
for (var i = 0; i < data.files.length; i++) {
data.files[i].name = data.files[i].name.split('/').pop();
}
var key = this.generateKey(data.files[0].name);

this.authenticate(key, data);
Expand Down

0 comments on commit 9f3640e

Please sign in to comment.