Skip to content

Commit

Permalink
FIX: UploadField error when attempting to attach non-existent file IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed Sep 9, 2015
1 parent 7c09f82 commit 06cc185
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions javascript/UploadField.js
Expand Up @@ -316,6 +316,8 @@
indicator.remove();
},
success: function(data, status, xhr) {
if (!data || $.isEmptyObject(data)) return;

self.fileupload('attach', {
files: data,
options: self.fileupload('option'),
Expand Down

0 comments on commit 06cc185

Please sign in to comment.