I am still not able to use the file input on device
I am still not able to use the file input on device
Hello!
We are working on your problem.
As soon as we will get any update, we will contact you.
Alright thank you I really hope this is fix
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
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?
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
I couldnt get the click function click event to work either. How can I use the FileTrasfer api appery has to upload an image?
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.
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
Hi Adam,
Please check this doc:
http://devcenter.appery.io/documentat...
Let us know if this helps.