WOFileUpload: Garbage in file when uploading a html-file
WOFileUpload: Garbage in file when uploading a html-file
- Subject: WOFileUpload: Garbage in file when uploading a html-file
- From: Kaj Hejer <email@hidden>
- Date: Mon, 19 Jan 2004 11:54:10 +0100
Hi!
When uploading a html-file with WOFileUpload using IE6 on windows we
get some stuff we don't want at the begining and end of the file, see
bellow.
This is what we get from new String(filecontent.bytes(), "ISO8859_1");
<theFile>
-----------------------------7d43d81310076
Content-Disposition: form-data;
name="0.0.UIOProfilContainerNOR.16.2.7.1";
filename="m:\pc\winnt\Desktop\nyfil.html"
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>xxx</TITLE>
<META name="dato.opprettet" content="2004-01-19">
<META name="enhet.id" content="astrobib">
<META name="tema" content="ommn">
<META name="spraak" content="no-bok">
</HEAD>
<BODY>
</BODY>
</HTML>
-----------------------------7d43d81310076
Content-Disposition: form-data; name="0.0.UIOProfilContainerNOR.16.2.7.3"
Hent
-----------------------------7d43d81310076--
</theFile>
We have this problem both with WO5.1.3 and WO5.2.2.
We use
uploadFile: WOFileUpload {
filePath = filename;
data = filecontent;
size = 50;
}
I use a WOSubmitButton as submitbutton
getFile: WOSubmitButton {
action = getFile;
value = "Hent";
}
and have set enctypee on the form:
uploadFileForm: WOForm {
enctype = "multipart/form-data";
}
Any ideas?
TIA!
-Kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.