-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for larger files #61
Comments
Any news on this? Im facing the same issue. |
@Miguelmcanabal I ended up just using the @capacitor/filesystem plugin. There's an appendFile method so that you can write the file in chunks. If you fetch your file as an array buffer, you can loop through it, grab slices, and write those slices using appendFile. I don't have timings to provide, but it writes quickly. |
I was able to wrote huge files (>5GB) using capacitor-file-chunk package. They implemented the append feature on the top of this repo:
|
First, thanks for the plugin! I'm using this to download and then write a sqlite DB to memory. My initial DB size is 320MB and the plugin isn't able to write a file that size (at least on iOS on an iPhone 12 mini). The largest file I've been able to write so far is 270MB. The plugin was able to write the 320MB file on my laptop on the iOS simulator.
The plugin tries to use the fallback mode, but that also fails. It ends up creating the file but doesn't write any data into it.
The error I get is for the 320MB file is, "WebKit encountered an internal error."
Thanks for taking a look at this!
The text was updated successfully, but these errors were encountered: