File upload: .JPG files have incorrect MIME type when downloaded, .jpg is OK.

  • Profile Image
    reidpr
    Asked on March 12, 2012 at 09:30 PM

    Hi,

    File uploads with an extension of ".JPG" (upper-case) are getting the incorrect MIME type when I download them. For example:

    $ curl --head --location http://submit.jotform.us/uploads/reidpr/20697284656163/197322471252243662/P1170133.JPG HTTP/1.1 302 Moved Temporarily Server: nginx/1.0.8 Date: Tue, 13 Mar 2012 01:25:00 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: http://s3.amazonaws.com/jufs/reidpr/20697284656163/197322471252243662/P1170133.JPGHTTP/1.1 200 OK x-amz-id-2: EiLTcjuP4c0alKu7F/kvub2XOQ5KM+7E2JOfMmNZeAOCWseDM8tN62aSrkIHt+RP x-amz-request-id: 9C04B6303796403E Date: Tue, 13 Mar 2012 01:25:11 GMT Last-Modified: Mon, 12 Mar 2012 00:47:52 GMT ETag: "6837bf22054e873603333c7f9bd3033a" Accept-Ranges: bytes Content-Type: application/octet-stream Content-Length: 1962712 Server: AmazonS3

    Note that Content-Type: should be "image/jpeg", not "application/octet-stream".

    If the extension is ".jpg" (lower-case), then it works fine. For example:

    $ curl --head --location http://submit.jotform.us/uploads/reidpr/20697284656163/197290408145778786/IMG_0306.jpg HTTP/1.1 302 Moved Temporarily Server: nginx/1.0.8 Date: Mon, 12 Mar 2012 05:17:57 GMT Content-Type: text/html Content-Length: 160 Connection: keep-alive Location: http://s3.amazonaws.com/jufs/reidpr/20697284656163/197290408145778786/IMG_0306.jpgHTTP/1.1 200 OK x-amz-id-2: 0zUtPtqK1fkonyccpnDDk2Cx2H2Y7M5dtoU5mD7FO0k/dslccEK5pI3uKibTmr3E x-amz-request-id: B0CC154DF7C53E38 Date: Mon, 12 Mar 2012 05:17:59 GMT Last-Modified: Sun, 11 Mar 2012 15:53:29 GMT ETag: "3b913ae1409d7f677a53e50bdb381976" Accept-Ranges: bytes Content-Type: image/jpeg Content-Length: 2359825 Server: AmazonS3

    I have my form set up with e-mail notifications, and so clicking on the link to the image confuses my browser, which wants to download the image instead of displaying it.

    Let me know how I can help fix this.

    Thanks!

    Reid

  • Profile Image
    reidpr
    Answered on March 12, 2012 at 09:32 PM

    OK, I don't know what the forum did to my <pre> text, but hopefully you get the point. Thanks!

  • Profile Image
    mliz
    Answered on March 13, 2012 at 01:25 AM

    I have escalated this issue to our administrators for further check. I was able to replicate the said issue where .JPG files are forced to be downloaded instead of being displayed on a browser.

    Please keep posted for whatever updates we have on this will be posted on this thread.

  • Profile Image
    reidpr
    Answered on March 15, 2012 at 12:27 AM

    Great! Thanks for your quick response. Let me know if there is any way I can help the fix move along efficiently.

    Reid

  • Profile Image
    reidpr
    Answered on March 25, 2012 at 01:04 PM

    Hi,

    Any update on this? It's been nearly two weeks, and the problem is still occurring.

    Thanks!

    Reid

  • Profile Image
    jeanettebmz
    Answered on March 25, 2012 at 01:17 PM

    Hi Reid

    I have already sent a message with your inquiry regarding to the status of the ticket my colleague opened 3 weeks ago. Please have in mind our developers team keeps busy while fixing urgent issues, so I cannot provide you with a timeframe for the solution, however let me tell you that your ticket has been set with an "important" priority.

    Jeanette



  • Profile Image
    reidpr
    Answered on May 06, 2012 at 06:18 PM

    Hi,

    Is there any update? It's been nearly two months since I reported the problem. I know enough about web dev to know that the fix is (or should be) a relatively simple table update. If "important" problems take this long, I shudder to consider what a normal one would get.

    I've got my credit card ready to sign up for the paid tier, but I'm hesitant to do so given the level of attention this straightforward problem has received.

    Is there any way for you to put me in touch with the technical staff who will be actually making the fix?

    Thanks,
    Reid

  • Profile Image
    jonathan
    Answered on May 06, 2012 at 06:38 PM

    Hi Reid,

    Truly sorry for the delay. But apparently there was no update yet coming from our dev team.
    Be assure though that they are doing what they can to expedite this matter, and you will also be alerted the soonest when they do have updates already since they will post on this thread also.

    Thank you for your consideration. 

  • Profile Image
    reidpr
    Answered on May 06, 2012 at 06:54 PM

    Hi Jonathan,

    "Be assure though that they are doing what they can to expedite this matter"? I simply do not believe that. It doesn't take two months to update the MIME types table. Empty assurances are not helpful here (nor anywhere).

    With whom can I escalate this matter?

    Thanks!

    Reid

  • Profile Image
    jonathan
    Answered on May 06, 2012 at 07:10 PM

    Hello Reid,

    I fully understand your side and your point. But this issue was already escalated by mliz.
    Here is a screen of its ticket. 

    As you can see it is with Important priority and status still opened.
    Our dev team can only attend to them according to lists of priorities. This is of high important priority for them, but they do have to follow some sequence on lists of the same high priorities.

    Thank you very much for understanding. 

  • Profile Image
    eee
    Answered on May 07, 2012 at 06:55 AM

    Hi Reid,

    Your problem has been fixed today,

    Kindest Regards,

    Ertugrul.

  • Profile Image
    reidpr
    Answered on May 26, 2012 at 05:03 PM

    @eee, thanks very much.

  • Profile Image
    jonathan
    Answered on May 26, 2012 at 05:29 PM

    Hi Reid,

    Thank you for updating us.

    Feel free to contact us again anytime should you have more concerns on JotForm.