Hi
I have a problem when I try to upload a file into the server with dojo.io.iframe.send().
In Firefox it works without any problem, but in IE7, it seems that the PHP global Array $_FILES is not assigned correctely (all the values are empty).
The same (exact) PHP program worked without any problems in Dojo 0.43 for both IE and FF using "IframeTransport"
so I suppose that for sure there isn't a PHP problem.
my Javascript code (inside function UploadTheFile) is:
var callCount = 0;
dojo.io.iframe.send({
url:"{HOME_URL}/?Ajax=1&Function=Main&SubFunction=Router&action=DOCPRJupload&docid="+docid,
form: dojo.byId("UploadDocumentForm"),
handleAs: "text/html",
timeout:"5000",
content: {
fileFields: "uploaddoc",
increment: callCount++
},
handle: uploadDocumentCallback,
method: 'POST'
});
The html
Select a Document}:
SAVE
I will be very grateful is someone can help me with this, again:
[1] The code is working correctely in FF (the file is uploaded, $_FILES are correctely initialized)
[2] In IE7 (I haven't IE6 to check) the php $_FILES array is empty (are not trasferred correctely from the form)
[3] The handler routine
thanks very much for any help (uploadDocumentCallback) is correctely called in both browsers
Eduardo
- Login or register to post comments
- Unsubscribe post

I cannot upload a file dojo.io.iframe.send(). on IE7 (with FF it
SaveMy mistake
Sorry, I found the problem.
dojoType="dijit.form.Form" is the cause of this problem. It should be a standard form and NOT dojo form.
After removing: dojoType="dijit.form.Form" from the html code, IE7 started to work, too.
I do not know why, but in FF it seems that this has no any negative effect.