Open tobwz opened 3 years ago
I guess this was also mentioned in #97.
I cannot transfer a ~200MB file because of a QuotaExceededError
. I guess this is due to sharedrop saving the file contents in a temporary "scratch" area (indexed db?) that seems to have a fixed size:
EDIT: forgot to mention that this is with Firefox Android v94.1.2 (sending end) and Firefox Linux v94.0.2 (receiving end)
@414n Exactly - it's using FileSystem API + IndexedDB polyfill. Unfortunately, I'm not checking for the required quota before trying to send a file. There's a ticket for it which I created back in 2014 🤦 https://github.com/szimek/sharedrop/issues/2.
PRs are welcome!
Javascript is not exactly my cup of tea, but isn't there a way to delegate the job to the native browser "save as" file functionality, using an object URL as source?
In the meantime, could it be helpful to add that there is a file size limitation to the FAQ? Let people would know that sending larger video or pics may (silently) fail, and also they should limit the number of files sent in a batch. Not knowing this, people may assume the service does not work at all, when really they should try sending smaller/fewer files. Even if the limitation may be different for every device, at least it gives the user something to try, or an explanation when it does not work.
Is there a max file size for transfer over ShareDrop?