#146 new

firefox upload issue (detect firefox, ask them to use another browser on upload)

Reported by sudara | February 28th, 2009 @ 07:41 AM

Comments and changes to this ticket

  • sudara

    sudara April 30th, 2010 @ 09:23 PM

    Firefox reports mp3s as application/binary (at least in tests we've performed).

    To fix this, I believe we can no longer use attachment_fu's content type check - we actually have to open the file and use the mime types gem to read the first part of the file (ala how the paperclip plugin works) - or, we could also use ruby-mp3info to confirm it's a valid mp3.

  • sudara

    sudara April 30th, 2010 @ 09:24 PM

    Users are reporting this issue on Chrome too - yet to do mime type checking on chrome, but it seems to affect people on chrome/firefox BOTH, otherwise neither. Might have something to do with OSX somehow?

  • Alvin Schur

    Alvin Schur May 1st, 2010 @ 05:36 AM

    FireFox on Snow Leopard sent a mime-type of "audio/mpeg3" for the muppets.mp3.

    I prefer validating the raw data uploaded by the user.

  • sudara

    sudara May 1st, 2010 @ 06:31 AM

    Hmm, is it reporting audio/mpeg or audio/mpeg3 ?

    In some cases (intermittent, depending on User) FF/Chrome doesn't report audio/mpeg, but instead reports application/binary.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

kick ass musician's home.

Shared Ticket Bins

People watching this ticket