diff --git a/javascript/UploadField.js b/javascript/UploadField.js index b41235aca..a8f4c6d68 100644 --- a/javascript/UploadField.js +++ b/javascript/UploadField.js @@ -152,6 +152,7 @@ { fileInput: fileInput, dropZone: dropZone, + form: $(fileInput).closest('form'), previewAsCanvas: false, acceptFileTypes: new RegExp(config.acceptFileTypes, 'i') }