What are the main differences between sending file to a server via Ajax and the FileTransfer functionality in Phonegap? Is one better than the other? Or are they essentially the same?
http://docs.phonegap.com/en/1.0.0/phonegap_file_file.md.html#FileTransfer
vs
http://api.jquery.com/jQuery.ajax/
Thanks!
The FileTransfer object uses multipart/form-data to POST the data up to the server. Ajax uses UTF-8 to send the data up to the server using XHR.