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 2021/02/02 14:52:09 UTC

[GitHub] [cordova-plugin-file] breautek commented on issue #453: cordova-plugin-file overwrites the global File variable on iOS

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


   > @breautek how do I update the clobber space to using the explicit namespace cordova.file as I'm having this same problem. That, or is it possible to create a File Reference using the cordova plugin that will be able to be Read in my API?
   
   The only way to do this is to fork the plugin and change the `plugin.xml`:
   
   https://github.com/apache/cordova-plugin-file/blob/a4a7bfe2aa48f5c44eb8af264c1c6540ea4dd072/plugin.xml#L48-L50
   
   Doing so may break things that depend on this plugin however, and may require other changes within the plugin's JS sources itself.
   
   A safer workaround might be to capture a reference to the original `File` object. Do this before you load the `cordova.js` file.


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