stable

Clone or download

Read-only

Prevent users to drop files bigger than sys_max_size_upload

Part of story #10721: upload documents with drag'n drop Try to drop files bigger than sys_max_size_upload. An error modal is displayed. Change-Id: I749b036d452bf4fbb9a226eaa27569cbca6e48d4

Modified Files

Name
M plugins/document/include/Tree/DocumentTreePresenter.php +8 −3 Go to diff View file
M plugins/document/scripts/document/components/App.vue +4 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/CurrentFolderDropZone.vue +6 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/DragNDropInCurrentFolder.vue +21 −5 Go to diff View file
A plugins/document/scripts/document/components/Folder/DragNDrop/ErrorModal.vue +66 −0 Go to diff View file
M plugins/document/scripts/document/components/Folder/DragNDrop/MaxFilesDragndropErrorModal.vue +16 −48 Go to diff View file
A plugins/document/scripts/document/components/Folder/DragNDrop/MaxSizeDragndropErrorModal.vue +45 −0 Go to diff View file
M plugins/document/scripts/document/index.js +3 −1 Go to diff View file
M plugins/document/scripts/document/po/fr.po +15 −5 Go to diff View file
M plugins/document/scripts/document/po/template.pot +7 −2 Go to diff View file
M plugins/document/scripts/document/store/mutations.js +10 −1 Go to diff View file
M plugins/document/scripts/document/store/state.js +2 −1 Go to diff View file
M plugins/document/scripts/package-lock.json +5 −0 Go to diff View file
M plugins/document/scripts/package.json +1 −0 Go to diff View file
M plugins/document/templates/document-tree.mustache +2 −1 Go to diff View file