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.


7 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. this is not working in android emulator

    ReplyDelete
  5. 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