stable

Clone or download

Read-only

Warn OSX user when archive weights 4GB or contains 64k+ files

Part of: story #12404 download folder as zip When the user uses Tuleap on an OSX device, and the size of the folder he tries to download exceeds 4GB or contains 64k+ files, then he gets a warning, else he gets the usual warning (size abover threshold). How to test: - Unless you have a Mac, add 'return true' in DownloadFolderAsZip::shouldWarnOSXUser - Try to download a folder whose size is above the warning_threshold --> Warning about threshold is displayed --> Warning about OSX is displayed --> Note about TULEAP_ERRORS.txt is displayed Change-Id: Id846f4ddf30fdb90ce84b47bff7031fb31e08107

Modified Files

Name
M plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/DownloadFolderAsZip.test.js +78 −2 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/DownloadFolderAsZip.vue +22 −4 Go to diff View file
M plugins/document/scripts/document/components/Folder/DropDown/DownloadFolderAsZip/ModalArchiveSizeWarning.vue +80 −23 Go to diff View file
M plugins/document/scripts/document/components/Folder/FolderHeader.vue +2 −0 Go to diff View file
M plugins/document/scripts/document/po/fr.po +29 −5 Go to diff View file
M plugins/document/themes/BurningParrot/document/_document.scss +1 −0 Go to diff View file
A plugins/document/themes/BurningParrot/document/_download-as-zip.scss +37 −0 Go to diff View file