Side navigation
#2656 closed bug (invalid)
Opened April 05, 2008 07:03AM UTC
Closed March 18, 2009 03:50AM UTC
Last modified March 14, 2012 05:57AM UTC
serialize() ignores input type=file
Reported by: | mingyuchang | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.4 |
Component: | ajax | Version: | 1.2.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
the output generated from serialize function with respect to a form doesn't include those values in the file type fileds
Attachments (0)
Change History (5)
Changed February 03, 2009 04:38AM UTC by comment:1
component: | core → ajax |
---|---|
summary: | serialize function of form misses the file field → serialize() ignores input type=file |
Changed March 18, 2009 03:50AM UTC by comment:2
resolution: | → invalid |
---|---|
status: | new → closed |
The serialize method can't get the contents of the file so I don't understand why it would need to serialize the file form field. You'd have to use one of the Ajax File upload plugins to get the contents via AJAX.
Changed September 13, 2011 02:51PM UTC by comment:3
what is an appropriate solution for sending files via ajax?
Changed October 04, 2011 12:47PM UTC by comment:4
Changed March 09, 2012 03:13PM UTC by comment:5
Replying to [comment:2 brandon]:
The serialize method can't get the contents of the file so I don't understand why it would need to serialize the file form field. You'd have to use one of the Ajax File upload plugins to get the contents via AJAX.
It's useful to get the filename for validation.
Seems like a pretty simple fix, it looks like the test for type just needs to have file added to it.