Input type file not uploading actual file data
I'm trying to get a file input control to work in uploading the content of the file from the browser to the server. Using:
var file1 = new AW.UI.Input;
file1.setControlText("file1");
file1.setId("file1");
file1.setName("file1");
file1.setStyle("left","50px");
file1.setStyle("top","375px");
file1.setStyle("width", "50%");
file1.getContent("box/text").setAttribute("type","file");
document.write(file1);
The form is uploading in multipart/form-data mode and the "file1" tags are in the appropriate place, BUT the message does not include the requested file to be uploaded. The byte count is correct without the file included meaning that the HTTP post method is working properly.
var file1 = new AW.UI.Input;
file1.setControlText("file1");
file1.setId("file1");
file1.setName("file1");
file1.setStyle("left","50px");
file1.setStyle("top","375px");
file1.setStyle("width", "50%");
file1.getContent("box/text").setAttribute("type","file");
document.write(file1);
The form is uploading in multipart/form-data mode and the "file1" tags are in the appropriate place, BUT the message does not include the requested file to be uploaded. The byte count is correct without the file included meaning that the HTTP post method is working properly.
Myshka
July 28,