• 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: Chuck Hill <email@hidden>
  • Date: Fri, 29 Jun 2007 10:53:41 -0700


On Jun 29, 2007, at 4:47 AM, Sigurður E. Vilhelmsson wrote:

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.

Ah ha! So it is a bug in the tutorial. Oh Janine.... :-)


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?

I don't think any solution is particularly simple. Anything that you do at this level is going to be hack. Janine and I have been discussing various ways of handling this nicely, but that is for a latter step in the turtorial. I guess we need to discuss the "not simple and too much work" case again.



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.

Yes! Bravo Janine!


Chuck


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
>




--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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: Janine Sisk <email@hidden>
References: 
 >Problem with a form SOLVED(sort of) (From: "Sigurður E. Vilhelmsson" <email@hidden>)

  • Prev by Date: Re: Finding binding in .wod file
  • Next by Date: Re: Selenium tests
  • Previous by thread: Re: Problem with a form SOLVED(sort of)
  • Next by thread: Re: Problem with a form SOLVED(sort of)
  • Index(es):
    • Date
    • Thread