Image Upload: The file you are trying to upload is corrupted.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rnedelkow
    Senior Member
    • May 2014
    • 214
    • 5.1.x

    Image Upload: The file you are trying to upload is corrupted.

    I recently upgraded to 5.2.5 and started receiving this error on all image attachments and image uploads. The images are valid and within the size limits. Here are my settings and I've rebuilt all attachments. The upload diagnostic returns no errors either. Any idea what causes this?



  • rnedelkow
    Senior Member
    • May 2014
    • 214
    • 5.1.x

    #2
    Here's the image I'm trying to upload and admincp stats.


    Attached Files
    Last edited by rnedelkow; Wed 4 Jan '17, 2:51pm.

    Comment

    • Mark.B
      vBulletin Support
      • Feb 2004
      • 24288
      • 6.0.X

      #3
      Make sure you clear your browser cache and restart your browser.

      There were changes to how attachments were handled in 5.2.5 and I've known browser caches mess this up.
      MARK.B
      vBulletin Support
      ------------
      My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
      My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

      Comment

      • rnedelkow
        Senior Member
        • May 2014
        • 214
        • 5.1.x

        #4
        Thanks for the suggestion Mark. I just tried that (clear cache and restart browser) but the page displayed "Working" for a bit then failed with, "The file you are trying to upload is corrupted." Is there any other diagnostic info I can provide?

        Comment

        • rnedelkow
          Senior Member
          • May 2014
          • 214
          • 5.1.x

          #5
          I should add I upgraded to php 5.6 prior to moving to vb 5.2.5. Image uploads worked in the prior vb version with php 5.6. Could it be a setting in php.ini?

          Comment

          • glennrocksvb
            Former vBulletin Developer
            • Mar 2011
            • 4021
            • 5.7.X

            #6
            Searching for that error message in the codebase led me to find out that it is caused by the security check being done on the image file. The system verifies the headers and exif data of the uploaded image for potential exploits and it looks like it is failing the check.

            Try uploading a different image. Do you also see the same error when uploading here?

            Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

            Comment

            • rnedelkow
              Senior Member
              • May 2014
              • 214
              • 5.1.x

              #7
              Thanks Glenn. I've tried several images of different types (gif, jpg, bmp, png) and all failed. The images in my original post failed to upload on my site but worked here.

              Comment

              • Heiko Scharfenort
                Member
                • Jan 2015
                • 38
                • 5.1.x

                #8
                Hi,
                I get exactly the same error sind 5.2.5. I tried to upload pictures, the header logo an Blog avatar...(User vatars are working.)

                This is an highly used function. So we need help very soon!
                Thank you very much!

                Comment

                • Heiko Scharfenort
                  Member
                  • Jan 2015
                  • 38
                  • 5.1.x

                  #9
                  by the way (I am also using IIS and a windows server)

                  Comment

                  • rnedelkow
                    Senior Member
                    • May 2014
                    • 214
                    • 5.1.x

                    #10
                    I reverted all our templates back to a vanilla site but the error persists. Is there anything that can be done to resolve this?

                    Comment

                    • Heiko Scharfenort
                      Member
                      • Jan 2015
                      • 38
                      • 5.1.x

                      #11
                      sometimes I hate vbulletin updates and the silence from support team, with troubles after update. Ticket Team says: no support, try forum or buy support. Forum: no help for days and days and days.... ;(
                      I/we bought a expensive forum platform... I think it is not to much expected, to help us with issues after update, which vbulletin created by themself....

                      Arghhhssss... Not the first time, where I can't provide a profesional forum/quality to my visitors.....

                      Comment

                      • Lynne
                        Former vBulletin Support
                        • Oct 2004
                        • 26255

                        #12
                        Are you seeing anything in your error_logs (if you don't know where they are, ask your host) when the image fails to upload?

                        Please don't PM or VM me for support - I only help out in the threads.
                        vBulletin Manual & vBulletin 4.0 Code Documentation (API)
                        Want help modifying your vbulletin forum? Head on over to vbulletin.org
                        If I post CSS and you don't know where it goes, throw it into the additional.css template.

                        W3Schools <- awesome site for html/css help

                        Comment

                        • Heiko Scharfenort
                          Member
                          • Jan 2015
                          • 38
                          • 5.1.x

                          #13
                          Hi, thank you for your response. We use a own windows server 2012. There is no eventlog or error log entry, which is created by this event.

                          Comment

                          • rnedelkow
                            Senior Member
                            • May 2014
                            • 214
                            • 5.1.x

                            #14
                            Hi Lynne, we also self manage our Windows server. No error_log entries either.

                            Comment

                            • Mark.B
                              vBulletin Support
                              • Feb 2004
                              • 24288
                              • 6.0.X

                              #15
                              The file uploads ok here and on my test site so this isn't a bug in the software.

                              Is your temp file writeable?
                              MARK.B
                              vBulletin Support
                              ------------
                              My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
                              My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

                              Comment

                              Related Topics

                              Collapse

                              Working...