cordova-plugin-file icon indicating copy to clipboard operation
cordova-plugin-file copied to clipboard

Don't override native window.File / window.FileReader (possibly via a preference)

Open asgoth opened this issue 7 years ago • 2 comments
trafficstars

I have a use case where I want to convert the cordova File object to a native File object. This is needed in order to submit a multipart request to a midtier server.

However, the original native File constructor is gone (overwritten by cordova-plugin-file).

Maybe consider using custom names, e.g. CordovaFile & CordovaFileReader?

asgoth avatar Oct 18 '18 16:10 asgoth

Feel free to create a Pull Request on the plugin that changes this functionality in a backwards compatible way.

janpio avatar Oct 30 '18 14:10 janpio

:+1:

chr15m avatar Dec 30 '21 09:12 chr15m

duplicate: https://github.com/apache/cordova-plugin-file/issues/316

breautek avatar Jan 25 '23 01:01 breautek