#24 √ resolved
Roob

validates_attachment_content_type doesn't work on ie7

Reported by Roob | July 18th, 2008 @ 05:56 AM

it seems that the paperclip validates_attachment_content_type function has problems with files uploaded by internet explorer 7 (didn't test ie6). maybe the cause is the scrambled filename (whole path) that ie submits with the input type="file"?

Comments and changes to this ticket

  • Roob

    Roob July 18th, 2008 @ 06:11 AM

    correction: internet explorer sends the mime-type “image/pjpeg” instead of “image/jpeg” with jpeg files. this is horrible, but if you validate for the additional mime-type, it works!

    i think this can be closed.

  • Jon Yurek

    Jon Yurek July 25th, 2008 @ 11:23 AM

    • → State changed from “new” to “resolved”

    Yeah. I'll make sure to add a note in the validates_attachment_content_type documentation noting that IE's content types are a little funky. Thanks.

  • Roob

    Roob July 25th, 2008 @ 11:28 AM

    that godforsaken "browser"... thanks!

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

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

People watching this ticket