[
https://issues.apache.org/jira/browse/CB-12531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pier Bover reopened CB-12531:
-----------------------------
I'm narrowing this. I have encountered the error again.
I solved the issue in my previous post by using FileReader. But since that
project didn't use cordova-plugin-file it was using the browser's FileReader.
And it works fine.
In my current project I need cordova-plugin-file and
cordova-plugin-file-transfer which means I'm not using the browser's
FileTransfer but instead the implementation from cordova-plugin-file.
I know this because for example I can't use reader.addEventListener(), which is
implemented in the native version, but not on the one provided by
cordova-plugin-file.
>From MDN:
{quote}
As FileReader inherits from EventTarget, all those events can also be listened
for by using the addEventListener method.
{quote}
https://developer.mozilla.org/en/docs/Web/API/FileReader
So, there is something broken in cordova-plugin-file.
How can I use the browser's native FileTranfer in a project with
cordova-plugin-file?
> File not found when selecting from Google Drive folder
> ------------------------------------------------------
>
> Key: CB-12531
> URL: https://issues.apache.org/jira/browse/CB-12531
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 3.5.0
> Environment: android
> Reporter: Pier Bover
>
> In Android, when using an <input type="file"> and selecting a file from the
> Drive folder, and then trying to upload it with JS, produces a file not found
> error.
> Here is a project using the Firebase SDK that reproduces the error and more
> detailed description of the problem:
> https://github.com/PierBover/firebase-upload-cordova
> At first I thought the problem was in the Firebase SDK, but I replaced it
> with Filestack and the problem persists. Also the Firebase support team
> reproduced the error and in their opinion it is a problem with the Cordova
> app.
> When trying to upload a file to a website like imgur.com using Chrome it
> works fine so it could be related to some obscure permissions.
> Hopefully someone here will be able to rule out if it's an Android bug or
> some limitation of Cordova.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]