sharedrop icon indicating copy to clipboard operation
sharedrop copied to clipboard

Is there a max file size for transfer over ShareDrop?

Open tobwz opened this issue 5 years ago • 4 comments

Is there a max file size for transfer over ShareDrop?

tobwz avatar Mar 31 '21 09:03 tobwz

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:

console

EDIT: forgot to mention that this is with Firefox Android v94.1.2 (sending end) and Firefox Linux v94.0.2 (receiving end)

414n avatar Dec 06 '21 17:12 414n

@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!

szimek avatar Dec 07 '21 12:12 szimek

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?

414n avatar Dec 19 '21 11:12 414n

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.

SherylHohman avatar May 26 '22 21:05 SherylHohman