diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 769db51..e101dec 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -14,6 +14,7 @@ function fileUpload(fileInput) { autoProceed: true, restrictions: { allowedFileTypes: fileInput.accept.split(','), + maxNumberOfFiles: (fileInput.multiple ? undefined : 1), } }) .use(Uppy.FileInput, {