Re: WOFileUpload: Garbage in file when uploading a html-file
Re: WOFileUpload: Garbage in file when uploading a html-file
- Subject: Re: WOFileUpload: Garbage in file when uploading a html-file
- From: "Jonathan Fleming" <email@hidden>
- Date: Mon, 19 Jan 2004 17:55:30 +0000
From: Kaj Hejer <email@hidden>
To: email@hidden
Subject: Re: WOFileUpload: Garbage in file when uploading a html-file
Date: Mon, 19 Jan 2004 13:53:17 +0100
At 11:54 +0100 19-01-04, Kaj Hejer wrote:
We have this problem both with WO5.1.3 and WO5.2.2.
I was wrong!
We had this issue only on WO5.1.3 and I can't reproduce it on WO5.2.2. Our
solution is to run this app as a WO5.2.2 app.
FWIW: this was a bug in 5.1.3 and is now fixed in 5.2.2, but if anyone is
using 5.1.3 and needs a workaround for this follow the comment of Jonathan
Rochkind and you'll be fine:
From : Jonathan Rochkind <email@hidden>
Subject : Re: WOFileUpload Error After Change To 5.2
Date : Mon, 14 Apr 2003 13:42:58 -0500
The bug is: the filePath _should_ be null, but is instead set to the name of
the WOFileUpload element. The workaround is: manually set the name element
(create a 'name' binding on the WOFilePath, set it to some constant, say
"___FileUpload"). If the filePath equals this constant you set it to, you
know that it SHOULD have been null, but due to a WO bug it wasn't.
Keep in mind that if you have multiple WOFileUploads in the same form, each
one must have it's own unique name. You can't use the same constant for each
one. Normally WO takes care of this for you, but our workaround requires us
to set the name manually, so we have to deal with it. I haven't come accross
a situation where I needed more than one upload in a form, but it would be
kind of a pain in the ass to fix it.
Like I said, it's also possible this bug has been fixed in update 1 for 5.2.
If it has, getting the update is certainly the easiest fix.
Hope this helps,
Jonathan F :^)
-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.
_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo
_______________________________________________
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.