#2656 closed bug (invalid)
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
Change History (5)
comment:1 Changed 14 years ago by
Component: | core → ajax |
---|---|
Summary: | serialize function of form misses the file field → serialize() ignores input type=file |
comment:2 follow-up: 5 Changed 14 years ago by
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.
comment:3 follow-up: 4 Changed 11 years ago by
what is an appropriate solution for sending files via ajax?
comment:4 Changed 11 years ago by
comment:5 Changed 11 years ago by
Replying to 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.