TonyS
Posts: 0
Joined: Thu Jun 11, 2015 12:11 pm

Can this be done?

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)

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Can this be done?

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.

TonyS
Posts: 0
Joined: Thu Jun 11, 2015 12:11 pm

Can this be done?

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Can this be done?

You should read file before send it. Read this documentation how to do it: http://docs.phonegap.com/en/edge/cord...

Return to “Issues”