-
Notifications
You must be signed in to change notification settings - Fork 77
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
Large files failing when trying to return JSONObject #25
Comments
The following must be added to config.xml to prevent crashing when selecting large files on Android:
|
In my case, files over 100 megabytes are selected without problems |
I have mentioned < application android:largeHeap="true" > |
any updates or known workarounds for this issue? |
I guess it is possible to use |
NOTE: Yes i have already got the android largeHeap = true in my manifest file
Platform: Android
I am selecting a 46MB file so i can copy it using my own code. Problem is that this plugin is trying to return the data for the file when you pick the file, and this is causing the app to crash
If you look at line 132, you will see this line
I belive this is because calling toString to create the JSON object as a string with this much data is too much.
Can i ask why the data is returned? Should this not be a parameter on the
getFile
method? Or can we have another method getFileWithoutData instead to not break existing calls?If i update my plugin file locally and change line 123 from
to
Then this now works
The text was updated successfully, but these errors were encountered: