• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
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)


  • 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


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

  • Prev by Date: Re: Refreshing complete page from a header component
  • Next by Date: Re: Refreshing complete page from a header component
  • Previous by thread: Problem with a form SOLVED(sort of)
  • Next by thread: Re: Problem with a form SOLVED(sort of)
  • Index(es):
    • Date
    • Thread