Page 1 of 1

Upload Image File From Camera

Posted: Fri Jan 09, 2015 2:28 pm
by KorryRogers

I've got my app setup so that it will take a picture and post the base64 string back to my appery database. This all works properly. What I need to know is whether or not I can upload an image directly to the Appery files database and whether or not that file database API will work natively on Android and iOS. I've read this tutorial: http://devcenter.appery.io/tutorials/... and I was wondering if it's possible to post the fileURI directly from the camera back to the files database.


Upload Image File From Camera

Posted: Sat Jan 10, 2015 1:46 am
by Illya Stepanov

Hi Korry -

In this tutorial 'uploadMultipleFilesHelper' function read HTML form-input content and uploads to DB. (by the way this method won't work for Android 4.4.4 look here: https://getsatisfaction.com/apperyio/...)

And if you want to read file from the device you will need to use PhoneGap File API for this - http://docs.phonegap.com/en/3.3.0/cor...