my goal is to upload an image and some extra data in json/xml from javascript/jquery. Since I am currently developing using the PhoneGap framework, this seems to be a bit of an hassle. It does not seem to be a problem doing this separately, but then I kind of loose the relation between the image, and the data that is describing it.
Does anyone have ideas of how to do this? Or some other nice way to “keep the data together”?
Thank you for any suggestions,
OMA
If u are using Phonegap, you should use the Filetransfer API of it.
You could do it like this and send your json object too.