Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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

#146

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

State: new
Milestone: none
Assigned to: nobody

Activity

  1. sudara
    sudara

    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.

    April 30th, 2010 @ 09:23 PM

  2. sudara
    sudara

    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?

    April 30th, 2010 @ 09:24 PM

  3. Alvin Schur
    Alvin Schur

    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.

    May 1st, 2010 @ 05:36 AM

  4. sudara
    sudara

    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.

    May 1st, 2010 @ 06:31 AM

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.