Content
View differences
Updated by Oliver Günther almost 7 years ago
We test for multiples of 4096 bytes to detect folders, because either their size is zero, file type is empty, or on some systems, their size is a multiple of 4096.
https://github.com/opf/openproject/blob/dev/frontend/src/app/modules/attachments/attachments-upload/attachments-upload.component.ts#L160
Of course this fails when a file is not a folder but exactly a multiple of 4096. Maybe in the meantime, there are better cross-browser consistent ways of identifying a folder
https://github.com/opf/openproject/blob/dev/frontend/src/app/modules/attachments/attachments-upload/attachments-upload.component.ts#L160
Of course this fails when a file is not a folder but exactly a multiple of 4096. Maybe in the meantime, there are better cross-browser consistent ways of identifying a folder