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/01/28 15:11:41 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-769151280


   > I never actively used this Plugin, but skimmed through the docs and it doesn't seem like this behaviour is intended.
   
   This plugin has its own `File` class, which is in no way related to the browser's native `File` class. This is intentional... but it was decision from way back in the day when browsers didn't really had a usable `File` class (outside of the readonly `File` instance obtained when using the `<input type="file">` field)
   
   Personally, I do agree, the plugin should avoid clobbering features provided by the browser. But changing this would probably require a discussion on the [mailing list](https://cordova.apache.org/contact/) as this plugin is a dependency of several other plugins. I suppose the simplest change (and simplest migration) would just change the clobber space to `cordova.file` or something.


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