• 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
Problem with a form SOLVED(sort of)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem with a form SOLVED(sort of)


  • Subject: Problem with a form SOLVED(sort of)
  • From: "Sigurður E. Vilhelmsson" <email@hidden>
  • Date: Fri, 29 Jun 2007 11:47:33 +0000

OK, I've solved this puzzle (sort of), and it comes back to the Tutorial code.

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?

Best regards,
Siggi

PS, I just want to use the opportunity to thank Janine for all the
effort that went into this tutorial.  It was exactly what I had been
missing, trying to get started with WebObjects.  And although this
particular problem has cost me a number of hair follicles and some
lost sleep, I have learned a great deal working my way through it.

2007/6/29, Sigurður E. Vilhelmsson <email@hidden>:
You're correct, that is the error reported.  But the problem is that
this happens when I don't want to update that field.  With no file
selected in the FileUpload field, the MIME type is still reported
application/octet-stream, when it should be empty.  So if I bump up
the field size, the MIME type gets replaced.

Siggi

2007/6/28, Eric Robinson <email@hidden>:
>
> On Jun 28, 2007, at 12:11 PM, Sigurður E. Vilhelmsson wrote:
> >
> > The MIME type reported is application/octet-stream.  The field should
> > be empty, since I haven't selected a file right?
> >> > The mimeType property of Country exceeds maximum length of 20
> >> > characters
> >> >
>
> Let me know if I'm off-base here, but the immediate problem seems to
> be that the reported value for MIME type(application/octet-stream) is
> actually longer than 20 characters. Maybe bumping that number up a
> little bit in your model might address at least that error.
>
> -eric
>

_______________________________________________
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


  • Follow-Ups:
    • Re: Problem with a form SOLVED(sort of)
      • From: Chuck Hill <email@hidden>
    • Re: Problem with a form SOLVED(sort of)
      • From: Paul Lynch <email@hidden>
  • Prev by Date: Re: Refreshing complete page from a header component
  • Next by Date: Re: [ANN] WebObjects Community Survey 2007 !
  • Previous by thread: Re: Refreshing complete page from a header component
  • Next by thread: Re: Problem with a form SOLVED(sort of)
  • Index(es):
    • Date
    • Thread