Re: Problem with a form SOLVED(sort of)
Re: Problem with a form SOLVED(sort of)
- Subject: Re: Problem with a form SOLVED(sort of)
- From: Paul Lynch <email@hidden>
- Date: Fri, 29 Jun 2007 14:22:30 +0100
On 29 Jun 2007, at 12:47, SigurĂ°ur E. Vilhelmsson wrote:
The tutorial instructs you to set the External Width of the MIME type
field to 20. However, the model in the source code has it set to 200.
So, when you run the tutorial source, my MIME type problem doesn't
come up. However, if you look at the database itself after updating a
record without specifying a file for upload, the MIME type does change
to application/octet-stream. Of course, with my MIME type field set
at a width of 20, my application reports an error :)
So my question is; is there a simple solution to this problem, and if
not, why bother with the MIME type field at all?
Most of the time when I use WOFileUpload, I hard code the mime type
to a constant string. That is somewhat restrictive, but seems to
work for the sorts of applications I have to write. You both with
mime type because the html requires it, and it has to come from
somewhere.
Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden