izissise / nginx-explorer

File explorer in javascript, file come from nginx autoindex
MIT License
29 stars 4 forks source link

Concurrent upload and chunk concatenation #27

Open izissise opened 1 month ago

izissise commented 1 month ago

Right now if there is concurrent uploads with the same chunk size, there is no way to correctly choose chunks to reconstruct the file

Some workaround that could be implemented:

izissise commented 1 day ago

I started to implement hashed upload here https://github.com/izissise/nginx-explorer/tree/hash-upload Sadly firefox doesn't support upload from readable stream, that make it inneficient because we would need to read its chunk twice first to hash it and then to send it.

https://bugzilla.mozilla.org/show_bug.cgi?id=1387483