Forum: Ruby on Rails Attachment_fu mp3s

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
403ece33c07b1964f7247b735c2fa836?d=identicon&s=25 Dan German (nb88)
on 2007-07-14 23:49
I'm trying to implement mp3 uploads but the validation engine keeps
flagging me every time i try to upload an mp3, "Content type is not
listed." I'm currently using 'application/mp3' as the content type. I'd
appreciate any help.

-Thanks
A3c73a768477c8f93dd48d9611376046?d=identicon&s=25 Ron Mr. (rawn027)
on 2007-07-15 00:05
(Received via mailing list)
Is there a good way anyone can think of doing this:

I want to read in the /etc/passwd & /etc/shadow and /etc/group file and
prune all the accounts that are not necessary then use them as the login
and password for my website. It will be an internal application that
controls an automated install server.

-Ron
00973881979aa0a660ffbbb2f7a907fb?d=identicon&s=25 Peter De Berdt (Guest)
on 2007-07-15 00:15
(Received via mailing list)
On 14 Jul 2007, at 23:49, Dan German wrote:

> I'm trying to implement mp3 uploads but the validation engine keeps
> flagging me every time i try to upload an mp3, "Content type is not
> listed." I'm currently using 'application/mp3' as the content type.
> I'd
> appreciate any help.

audio/mp3 will work better for you.


Best regards

Peter De Berdt
5635e2fe13ed1c423962f5683fede3c0?d=identicon&s=25 Andrew Kuklewicz (Guest)
on 2007-07-15 00:53
(Received via mailing list)
Actually - the correct mime type is 'audio/mpeg', not 'audio/mp3'

http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7

http://www.iana.org/assignments/media-types/audio/

Cheers,
-Andrew


On 7/14/07, Peter De Berdt <peter.de.berdt@pandora.be> wrote:
> appreciate any help.
>
> >
>


--
Andrew Kuklewicz
403ece33c07b1964f7247b735c2fa836?d=identicon&s=25 Dan German (nb88)
on 2007-07-15 01:32
Thanks for the help guys, works now
This topic is locked and can not be replied to.