ipfs-shipyard / ipfs-share-files

Share files via IPFS
https://share.ipfs.io
MIT License
145 stars 29 forks source link

Can't add big files files any more #126

Open bam80 opened 3 years ago

bam80 commented 3 years ago

I was experimenting with the share and after I have uploaded several GB of data, I seem can't add big (~0.5GB) files any more - they are not uploaded properly, see cross on the screenshot. I don't see something suspicious in Network debug. Is it some restriction I faced? image

lidel commented 3 years ago

Perhaps you hit imitation of your web browser: https://web.dev/storage-for-the-web/#how-much Does this continue to happen when you switch to a different browser, or are you able to share new things just fine there?

bam80 commented 3 years ago

Do you mean that files I uploaded are still present somewhere inside my browser? I didn't experimenting since then.

lidel commented 2 years ago

Unlikely. Browsers do not have deterministic size limits for local storage, they usually use heuristic that trigger garbage collection depending on various factors – see https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API/Browser_storage_limits_and_eviction_criteria

I assume you simply triggered it by loading a file that is too big for in-browser node running on share.ipfs.io. If you want to share big files reliably, you should run your own node: https://docs.ipfs.io/install/

lidel commented 2 years ago

I think we should add a warning when a bigger file is shared (eg. >50mb) informing user that they should run their own node instead https://docs.ipfs.io/install/ipfs-desktop/

I'm happy to review a PR if someone has time to add it.