I'm trying to upload an image on Intel XDK
intel.xdk.file.uploadToServer(pictureURL,"http://www.myserver.com/uploadImage.php", "", "image/jpeg",
but the image doesn't seem to upload to the server even though i get a success from the callback, anyone have an idea what could be wrong?
there are many ways to upload file to server. at all this is a 2way action.
maybe file has been uploaded but an error has occurred in server. you can use fail callback and got the error.
, function (error) { alert(JSON.stringify(error)); });
or maybe an undefined value cause error andbreaks the next line.
using ajax calls, httpRequest are standard ways which has many references