# Attachment\_fu mp3s

**URL:** <https://www.ruby-forum.com/t/attachment-fu-mp3s/109438>\
**Category:** Rails\
**Created:** [July 14, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438 "2007-07-14T23:49:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcgrigsby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5e925/32.png) [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Post date:** [July 14, 2007, 11:49pm UTC](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438/1 "2007-07-14T23:49:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dcgrigsby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5e925/32.png) [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Post date:** [July 15, 2007, 12:05am UTC](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438/2 "2007-07-15T00:05:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dcgrigsby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5e925/32.png) [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Post date:** [July 15, 2007, 12:15am UTC](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438/3 "2007-07-15T00:15:36Z")

</div>

On 14 Jul 2007, at 23:49, Dan G. 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

---

<div class="post-metadata">

**Author:** ![dcgrigsby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5e925/32.png) [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Post date:** [July 15, 2007, 1:32am UTC](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438/4 "2007-07-15T01:32:05Z")

</div>

Thanks for the help guys, works now

---

<div class="post-metadata">

**Author:** ![dcgrigsby](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5e925/32.png) [@dcgrigsby](https://www.ruby-forum.com/u/dcgrigsby)\
**Post date:** [July 15, 2007, 12:53am UTC](https://www.ruby-forum.com/t/attachment-fu-mp3s/109438/5 "2007-07-15T00:53:38Z")

</div>

Actually - the correct mime type is ‘audio/mpeg’, not ‘audio/mp3’

[http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7](http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7)

[http://www.iana.org/assignments/media-types/audio/](http://www.iana.org/assignments/media-types/audio/)

Cheers,  
-Andrew

On 7/14/07, Peter De Berdt [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> appreciate any help.
> 
> >

–  
Andrew K.
