Can this be done?
Posted: Thu Jun 11, 2015 12:11 pm
by TonyS
I need a form that has 4 input fields one of them is an upload image field. The data is submitted to a mysql database located on my server. Can this be done using APIexpress and AngularJS? (sorry I'm used to doing stuff like this in php so it's all new)
Can this be done?
Posted: Fri Jun 12, 2015 8:54 am
by Serhii Kulibaba
Hello Tony,
Yes, it is possible. You need set input's type = file. And read file as blob(https://developer.mozilla.org/en-US/d...) before service invocation.
Can this be done?
Posted: Fri Jun 12, 2015 9:31 am
by TonyS
Thanks Sergiy,
I don't really want a Blob insert. I want the image uploaded to the server and referenced in db. Can this be done?
Can this be done?
Posted: Mon Jun 15, 2015 7:57 pm
by Serhii Kulibaba
You should read file before send it. Read this documentation how to do it: http://docs.phonegap.com/en/edge/cord...