You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/12/18 00:16:10 UTC

[GitHub] [cordova-plugin-file] breautek commented on issue #444: Not Allowed to load local resource

breautek commented on issue #444:
URL: https://github.com/apache/cordova-plugin-file/issues/444#issuecomment-747786520


   > Also how should we send the recorded audio/video file to backend Server? Do we need to convert MediaFile or FileEntry Object to Base64 string and send it to server?
   
   I would strongly advise use base64 encoded strings. They explode the memory representation of your binary files by 35-40%. You can read these files as `Blob` instead and send them to your backend via `XMLHttpRequest`.
   
   > Can anyone help how to get rid from this Not Allowed 
   
   I have a feeling this is due to a change in API 29. There is already an API 29 fixed merged in master, but this hasn't been released. Can you try to see if this issue reproduces when using the development version of this plugin? You can install it using the following command:
   
   `cordova plugin add https://github.com/apache/cordova-plugin-file.git`
   
   Don't forgot to uninstall the plugin first before replacing it.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org