I looked into this further, and discovered that with Fireforx uploading of
flac files works: the content_type is set to
''application/octet-stream''. So,
the problem must be related to safari''s handling of mime types for
binary
files. I''ll have to look into that.
thanks,
sean
On Thu, Apr 24, 2008 at 10:18 PM, Sean O''Hara
<sean.alien8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi All,
> I am having a problem with the attachment_fu plugin and flac audio files.
> In the dev environment, using mongrel, the form upload object does not seem
> to have any associated content_type. I get the following attachment_fu
> validation error: "Content type can''t be blank". I
don''t understand why
> the file_data would not have any content_type. Doesn''t rails set
the content
> type based on the mime type? How is it that a file can be uploaded without
> any mime type at all? Shouldn''t it at least have
application/octet-stream if
> the server can''t parse the actual file type? I tried starting
mongrel with:
> mongrel_rails start -m config/mime_types.yml
> and my mime_types.yml file reads:
> ---
> .flac: audio/flac
>
> But this hasn''t helped. Are these configuration loaded mime types
only used
> for serving files, and not for associating a content type with uploaded
form
> data?
>
> Thanks in advance for any tips.
>
> Sean
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---