Skip to content

Commit

Permalink
Merge pull request #4650 from frafra/upload-no-local-path
Browse files Browse the repository at this point in the history
Strip local path when uploading (IE fix)
  • Loading branch information
amercader committed Feb 5, 2019
2 parents fb38f34 + cfd1acb commit 689c488
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 @@ -188,6 +188,9 @@ this.ckan.module('resource-upload-field', function (jQuery) {
_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 689c488

Please sign in to comment.