Opened 14 years ago

Closed 14 years ago

Last modified 11 years ago

#5746 closed defect (fixed)

dijit.form.Form and file-input within IE6

Reported by: [email protected] Owned by: Douglas Hays
Priority: high Milestone: 1.1
Component: Dijit - Form Version: 1.0
Keywords: form file fileupload file-input Cc:
Blocked By: Blocking:


Since r12044 the upload of files using file-input doesn't work anymore within ie6. This happens when the form is defined as "dijit.form.Form". In my opinion, the enctype of the form isn't recognized correctly.

A testcase would be:

<form dojoType="dijit.form.Form" id="myForm" action="/myaction/" method="post" enctype="multipart/form-data">
  <input name="new_file" type="file"/>
  <input type="submit" value="Submit"/>

Attachments (1)

form_encytpe_diff.patch (604 bytes) - added by guest 14 years ago.
Patch for dijit.form.Form

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by guest

Attachment: form_encytpe_diff.patch added

Patch for dijit.form.Form

comment:1 Changed 14 years ago by guest

With the above patch, the upload is working within ie6. Maybe there is a better solution.

comment:2 Changed 14 years ago by bill

Cc: [email protected] removed
Milestone: 1.1
Owner: set to Douglas Hays
Reporter: changed from guest to [email protected]

comment:3 Changed 14 years ago by Douglas Hays

Resolution: fixed
Status: newclosed

(In [12261]) Fixes #5746. Grab encType from srcNodeRef for IE. Added file upload form test but encType must be specified as multipart/form-data for this to work.

comment:4 Changed 14 years ago by Douglas Hays

(In [12262]) References #5746. Add setAttribute override for encType so that programmatic Form creation in IE works.

comment:5 Changed 11 years ago by bill

Component: DijitDijit - Form
Note: See TracTickets for help on using tickets.