Opened 15 years ago
Closed 15 years ago
#3735 closed defect (invalid)
Enable file input in forms
Reported by: | guest | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | 1.0 |
Component: | Core | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
In dojo.formToObject file input fields are treated as non-value form elements. They should be treated as normal input fields.
To fix in dojo._base.xhr replace
var iq = "input[type!=file][type!=submit][type!=image][type!=reset][type!=button], select, textarea";
with
var iq = "input[type!=submit][type!=image][type!=reset][type!=button], select, textarea";
Change History (2)
comment:1 Changed 15 years ago by
Milestone: | → 1.0 |
---|
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
File inputs cannot be handled by XHR; you must use the iframe transport to post any kind of binary-encoded information (anything uploaded via a file input is handled by browsers as binary encoded, usually base64).
If you are assembling a file on the fly, you can use the DojoX xhrMultiPart transport (dojox.io.xhrMultiPart).