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 PROTECTED]>:
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 PROTECTED]>: > > 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 protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
