I have a file input box on my page, created by the following HTML:
<input type="file" id="imagefile" accept="image/gif" />
I'm using the file input to upload a file using the Imageshack API. The API states that I need to send the following parameter:
fileupload; (input type="file") - image or video file. Mandatory unless url parameter is specified.
I'm using the jquery $.post method, but how do I refer to the file that the user has selected in the input box? Thanks for reading.
Edit: formatted the code.