Re: [Zope-dev] Re: inconsistent mimetype assignment for uploaded files

2004-09-30 Thread Dieter Maurer
Tres Seaver wrote at 2004-9-30 10:03 -0400: > ... >In summary, I would prefer the precedence to be: > > 1. Passed value > > 2. Request header > > 3. Guessed value +1 -- Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailm

Re: [Zope-dev] Re: inconsistent mimetype assignment for uploaded files

2004-09-30 Thread Tres Seaver
Jan-Wijbrand Kolman wrote: -1 for using the "guessed" value over the one from the headers; +1 for using the argument over the guessed value (so that the application can "fix" the problem). I agree that having different clients supply different types is painful, but I don't think that "fixing"

Re: [Zope-dev] Re: inconsistent mimetype assignment for uploaded files

2004-09-30 Thread Jan-Wijbrand Kolman
Tres Seaver wrote: -1 for using the "guessed" value over the one from the headers; +1 for using the argument over the guessed value (so that the application can "fix" the problem). I agree that having different clients supply different types is painful, but I don't think that "fixing" it at th

[Zope-dev] Re: inconsistent mimetype assignment for uploaded files

2004-09-30 Thread Tres Seaver
Jan-Wijbrand Kolman wrote: Hello, we recently realised mimetype assignment in Zope to e.g. Zope File objects is inconsistent and can vary when different clients (browsers) upload files with the same file extensions. Example: when a file called "foobar.rtf" is upload to a Zope File object from Linux

[Zope-dev] AW: [Zope3-dev] Removing I18nFile and I18nImage from X3.0

2004-09-30 Thread dev
Stephan Richter wrote: > Betreff: Re: [Zope3-dev] Removing I18nFile and I18nImage from X3.0 > > > On Thursday 30 September 2004 06:17, Jim Fulton wrote: > > I think it would be very worth while to think about how to > > internationalize meta data.  The advantage of coming up with a > > mechanism

Re: [Zope-dev] inconsistent mimetype assignment for uploaded files

2004-09-30 Thread Andreas Jung
--On Donnerstag, 30. September 2004 9:36 Uhr +0200 Jan-Wijbrand Kolman <[EMAIL PROTECTED]> wrote: def _get_content_type(self, file, body, id, content_type=None): """ Order of precedence: 1) see if guess_content_type resolves to a mimetype for the filename 2) if not use

[Zope-dev] inconsistent mimetype assignment for uploaded files

2004-09-30 Thread Jan-Wijbrand Kolman
Hello, we recently realised mimetype assignment in Zope to e.g. Zope File objects is inconsistent and can vary when different clients (browsers) upload files with the same file extensions. Example: when a file called "foobar.rtf" is upload to a Zope File object from Linux Firefox, the mimetype assi