Skip to main content

Bug Tracker

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 dmethvin comment:1

component: coreajax
summary: serialize function of form misses the file fieldserialize() ignores input type=file

Seems like a pretty simple fix, it looks like the test for type just needs to have file added to it.

Changed March 18, 2009 03:50AM UTC by brandon comment:2

resolution: → invalid
status: newclosed

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 MrIsaacs comment:3

what is an appropriate solution for sending files via ajax?

Changed October 04, 2011 12:47PM UTC by anonymous comment:4

Replying to [comment:3 MrIsaacs]:

what is an appropriate solution for sending files via ajax?

beer

Changed March 09, 2012 03:13PM UTC by adam.jimenez@gmail.com 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.