How to upload file from a file input element in a html form?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sharad Singh
    New Member
    • Jan 2011
    • 1

    #1

    How to upload file from a file input element in a html form?

    I am new to Javascript/AJAX.

    I need to upload a file to a server using a file input element(using the 'onchange' event). I need to write a javascript/ajax code for the same.

    I would be very grateful if someone amongst you might drop a little hint in doing so.

    Please Help.

    Thank you.

    Sharad
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    Hi Sharadh,
    Please have a look over this tutorial

    Thanks and Regards
    Ramanan Kalirajan

    Comment

    Working...