View Single Post
Old 11-14-2008, 03:18 PM   PM User | #1
tosbourn
Regular Coder

 
Join Date: Aug 2008
Location: Northern Ireland
Posts: 167
Thanks: 12
Thanked 6 Times in 6 Posts
tosbourn is on a distinguished road
jQuery Uploading Files

I am pretty much completely new to jQuery and I have a quick question regarding getting certain attributes.

I want to allow file uploads via one particular form, however I would like it if the form could be handled in the same way all other forms are on this project (they are not submitted using HTML, all is done using jQuery and $.post)

I am not sure if this is even possible, but is there a way of grabbing the file contents, size and type from within jQuery - doing something like...

Code:
alert($("#file").val());
Return the filename but nothing else (unless this is the first element of an array, and if so how do I access the other elements?

Cheers in advance.
tosbourn is offline   Reply With Quote