Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Problem with a form SOLVED(sort of)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with a form SOLVED(sort of)




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


References: 
 >Problem with a form SOLVED(sort of) (From: "Sigurður E. Vilhelmsson" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.