Announcement

Collapse
No announcement yet.

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

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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?




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


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

    Comment


    • #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

      TalkNewsUK - My vBulletin 5.6.1 Demo
      AdminAmmo - My Cloud Demo

      Comment


      • #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


        • #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


          • #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?

            GIPHY for vB5 AutoLinker Auto-Create Flag Report Topic Social Icons in Postbit Clear Cache Cron DragDrop Upload Topic AJAX AutoUpdate Custom Avatars Selector Stop Links in Posts...and more!

            Comment


            • #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


              • #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


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

                  Comment


                  • #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


                    • #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


                      • #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


                        • #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


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

                            Comment


                            • #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

                              TalkNewsUK - My vBulletin 5.6.1 Demo
                              AdminAmmo - My Cloud Demo

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X