adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

I am still not able to use the file input on device

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

The File Input component not working on device

Hello!

We are working on your problem.
As soon as we will get any update, we will contact you.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

Alright thank you I really hope this is fix

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

The File Input component not working on device

Hello Adam,

Unfortunately this is bug. It won't work in 4.4.x
Here is a quote from http://docs.phonegap.com/en/3.4.0/gui...:

Starting on Android 4.4, creating a file input element with type="file" will not open the file picker dialog. This is a regression with Chromium on Android and the problem can be reproduced in the standalone Chrome browser on Android (see http://code.google.com/p/android/issu...) The suggested workaround is to use the FileTransfer and File plugins for Android 4.4. You can listen for an onClick event from the input type="file" and then pop up a file picker UI. In order to tie the form data with the upload, you can use JavaScript to attach form values to the multi-part POST request that FileTransfer makes. This bug still exists as of Android 4.4.2

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

Can you give me an example code of how I can listen for a click on the file input and open the file picker UI? And will this still grab and save the file location off the device so I can still use/send to the file upload service I created?

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

The File Input component not working on device

Hello Adam,

1) No, unfortunately, we don't have such example. You may try, if you'll have any problems please contact us
2) "And will this still grab and save the file location off the device so I can still use/send to the file upload service I created" - Yes, everything should to be fine

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

I couldnt get the click function click event to work either. How can I use the FileTrasfer api appery has to upload an image?

obullei
Posts: 0
Joined: Thu Jun 05, 2014 12:17 am

The File Input component not working on device

Hello Adam!

FileTrasfer api is included to PhoneGap by default.
Please take a look here: http://cordova.apache.org/docs/en/3.3...
Here you can find information how to use it.

adam griffin
Posts: 0
Joined: Tue May 21, 2013 8:44 pm

The File Input component not working on device

I could not figure out how to get this to work for me. Is there any type of Appery tutorial for this? Or I could share my project

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

The File Input component not working on device

Hi Adam,

Please check this doc:
http://devcenter.appery.io/documentat...
Let us know if this helps.

Return to “Issues”