Saturday, 18 August 2012

Attaching a file in Cordova & uploading it with jQuery Mobile

This post is for those unlucky souls who are tasked with developing an Android solution that attaches a file to an HTML form using Cordova and uploads the form via jQuery Mobile. Documentation on these topics is scarce so I've created a minimal example on my GitHub page demonstrating how to do this. Instructions to run the example are found inside the project's README file.


9 comments:

  1. Hi Claude ,

    Great blog! Is there an email address I could contact you in private?

    ReplyDelete
  2. Hi nice tutorial but can u please show me how to get to browse and upload any type of file from mobile folders? It will really help me

    ReplyDelete
  3. Nice example. works well. you can include uploaded file receiving server url code .. may be in php or jsp ... just to make it complete.

    @ madhulika , this example exactly shows the same. you can upload any type of file 3gp, img, aac, etc...

    ReplyDelete
  4. Do you have any idea whyt it work perfectly well in eclipe and his android emulator, but it fails to open any dialog when I install the app in my phone? (I have android 4.1)

    ReplyDelete
  5. Just to solve my previous question: phonegap upload doesn't work in Android >= 4.1 devices. Probably version 2.4 will allow that :)

    ReplyDelete
  6. this is not working in android emulator

    ReplyDelete
  7. can u suggest me why it is not working for my emulator

    ReplyDelete
    Replies
    1. Are you using the correct version of the emulator Uma? There is a comment on this post that says the demo doesn't work on Android >= 4.1 devices.

      Delete