#10264 closed defect (fixed)
no upload with dojox.form.FileUploader (force:html) 1.3.2
Reported by: | minobun | Owned by: | Mike Wilcox |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | DojoX Form | Version: | 1.4.0b |
Keywords: | FileUploader, uploadOnChange, selectMultipleFiles, | Cc: | |
Blocked By: | Blocking: |
Description
The FileUploader? sends no files if the option uploadOnChange: true OR selectMultipleFiles: false is set. I've only tested this with force:"html" because then i can trace with firebug what the php script got.
<?php error_reporting(E_ALL); print_r($_FILES); ?>
response
Array ( )
Testcase:
<script type="text/javascript"> /*<![CDATA[*/ dojo.require("dojo.parser"); dojo.require("dojox.form.FileUploader"); dojo.addOnLoad(function() { var uploader = new dojox.form.FileUploader({ hoverClass:"btnHover", activeClass:"btnActive", disabledClass:"btnDisable", uploadUrl: "/uploader.php", force:"html", // selectMultipleFiles: false, uploadOnChange: true },"btn0"); }); /* ]]> */ </script> <div id="btn0" class="browse" >Select Images...</div>
Workaround for uploadOnChange: true
dojo.connect(uploader, "onChange", function(data){ console.log("DATA:", data); window.setTimeout(function(){ uploader.upload(); }, 500); });
Change History (6)
comment:1 Changed 11 years ago by
Owner: | changed from dante to Mike Wilcox |
---|
comment:2 Changed 11 years ago by
comment:3 Changed 11 years ago by
@minobun, you really should create separate tickets for separate issues. It makes things confusing. Tha 2nd bug is fixed in 1.4, and a workaround is posted in this ticket: http://bugs.dojotoolkit.org/ticket/9615
I'm still looking nto the first issue.
comment:4 Changed 11 years ago by
I just plain had neglected to build the input in the case of uploadOnChange. That will be fixed in the next commit. However, I did not see this problem if uploadOnChange is false and multiple false). Let me know if I missed something.
comment:5 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:6 Changed 11 years ago by
Milestone: | tbd → 1.4 |
---|
Also ie6 and ie7 are stopping at the addOnLoad function if force:html. with a scripterror at line 4685 (dojo.js.uncompressed.js). Message: invalid argument.
dojo.js.uncompressed.js:
Testcase: