|
-
Mar 15th, 2015, 03:04 PM
#1
Thread Starter
Member
File upload through Ajax
Folks,
I'm going through tutorials about uploading file through Ajax. This one, this one, and another one. They are very similar. Both stuff the data into an object and post it with $.ajax(...) . So far so good.
There is a line
Code:
m_data.append( 'file_attach', $('input[name=file_attach]')[0].files[0]);
What is the first [0] for? Why is it required? Where can I read more about the files[] array?
Any suggestion, insight or reference is really appreciated!
Best,
-Nick
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|