There are 2 comments.
 
 
XWiki Platform / cid:jira-generated-image-avatar-d72f2d91-6a70-4dc8-b33f-0047e5d1b28e XWIKI-22159 Open

Allow reliable uploads of large files

 
View issue   ·   Add comment
 

2 comments

 
cid:jira-generated-image-avatar-45d4c659-2b74-4b7d-8e49-c08d5e4bd3fd Raphaël Jakse on 30/May/24 13:33
 

> means having enough disk space (e.g. if you upload a 75GB file, then you need at least 75GB more to be able to slice it up).

Not necessarily, I believe the code in Simon's link (which uses Blob.slice/File.slice) slices in memory. This can

I also happen to have debugged a large upload on Nextcloud yesterday, I notice it was slicing my 3GB test file into 10MB chunks. This also allows bypassing the reverse proxy's max post body size parameter or such limitations.

 
cid:jira-generated-image-avatar-45d4c659-2b74-4b7d-8e49-c08d5e4bd3fd Raphaël Jakse on 30/May/24 13:34
 
> means having enough disk space (e.g. if you upload a 75GB file, then you need at least 75GB more to be able to slice it up).

Not necessarily, I believe the code in Simon's link (which uses [Blob.slice/File.slice|https://developer.mozilla.org/en-US/docs/Web/API/Blob/slice]) slices in memory.
This can

You'd have to store only the slice that you are currently uploading.

I also happen to have debugged a large upload on Nextcloud yesterday, I notice it was slicing my 3GB test file into 10MB chunks. This also allows bypassing the reverse proxy's max post body size parameter or such limitations.