Opened 12 years ago

Closed 12 years ago

#3257 closed defect (invalid)

dojo.io.bind with file don't work on a remote server

Reported by: guest Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.4.2
Keywords: Cc:
Blocked By: Blocking:

Description

Hi there, my following code will work fine on my localhost...

function uploadBind(formid, target) {

var ctr = 0; dojo.io.bind({

formNode: document.getElementById(formid),

content: { increment: ctr++,

fileFields: "file" },

mimetype: "text/html",

method: "post",

multipart: true,

enctype: "multipart/form-data",

handler: function (type, data, e) {

dojo.byId(target).innerHTML = "Upload complete.";

},

error: function(type, error){ alert("Type: "+type+ "

Error: "+error); }

});

}

On my remote server, I will get no error and no results? Are there any special configuration in php.ini??

Change History (2)

comment:1 in reply to:  description Changed 12 years ago by guest

Ok. Solved. Firewall problem...

Replying to guest:

Hi there, my following code will work fine on my localhost...

function uploadBind(formid, target) {

var ctr = 0; dojo.io.bind({

formNode: document.getElementById(formid),

content: { increment: ctr++,

fileFields: "file" },

mimetype: "text/html",

method: "post",

multipart: true,

enctype: "multipart/form-data",

handler: function (type, data, e) {

dojo.byId(target).innerHTML = "Upload complete.";

},

error: function(type, error){ alert("Type: "+type+ "

Error: "+error); }

});

}

On my remote server, I will get no error and no results? Are there any special configuration in php.ini??

comment:2 Changed 12 years ago by James Burke

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.