diff --git a/javascript/UploadField.js b/javascript/UploadField.js index 698f36249..ab2c7a7dd 100644 --- a/javascript/UploadField.js +++ b/javascript/UploadField.js @@ -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'),