Announcement

Collapse
No announcement yet.

Image upload failed because the extension of this file did not match the content.

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

  • [Bug / Issue] Image upload failed because the extension of this file did not match the content.

    hello,

    When I try to upload images in this message

    Image upload failed because the extension of this file did not match the content.

    the problem with gif tmp jpeg jpg
    https://www.vbulletin.com/forum/foru...re-waiting-for

  • #2
    Not a bug... It is actually a security precaution. Provide a link to the images that you're having problems with so they can be reviewed. We do not allow tmp files to be uploaded on this site. Changing the extension doesn't change the file type.

    Click image for larger version

Name:	IMG_0172.JPG
Views:	39
Size:	186.3 KB
ID:	4373553
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment


    • #3
      the problem also with gif and jpg jpeg
      Attached Files
      https://www.vbulletin.com/forum/foru...re-waiting-for

      Comment


      • #4
        Without access to the original images uploaded to a source that isn't vBulletin. I can't tell you what the issue is.
        Translations provided by Google.

        Wayne Luke
        The Rabid Badger - a vBulletin Cloud demonstration site.
        vBulletin 5 API

        Comment


        • #5
          the original image
          Attached Files
          https://www.vbulletin.com/forum/foru...re-waiting-for

          Comment


          • #6
            As I stated, attaching it here doesn't really help me. We rewrite every image and remove the metadata from them when they are uploaded. Plus clicking on the attachment gives "Invalid File Data" which means there are problems with it. The Image must be uploaded to a cloud sharing service like Google Drive or Dropbox and then the link to it shared here.


            Translations provided by Google.

            Wayne Luke
            The Rabid Badger - a vBulletin Cloud demonstration site.
            vBulletin 5 API

            Comment


            • #7
              Sorry, I did not understand well


              http://i.imgur.com/qxCYmJ5.gif
              https://www.vbulletin.com/forum/foru...re-waiting-for

              Comment


              • #8
                Hmm.. That appears to be a GIF unless Imgur rewrote the image to fit its extension. If you put your site into debug mode, is more information provided with the error message?
                Translations provided by Google.

                Wayne Luke
                The Rabid Badger - a vBulletin Cloud demonstration site.
                vBulletin 5 API

                Comment


                • #9
                  1. ajax/api/node/incrementNodeview (success, 647ms, 4ms)
                  2. /ajax/api/reputation/vote (success, 502ms, 7ms)
                  3. /chat/loadheaderdata (success, 444ms, 14ms)
                  4. /uploader/upload (success, 434ms, 315ms)
                  https://www.vbulletin.com/forum/foru...re-waiting-for

                  Comment


                  • #10
                    You need to put your site into debug mode, not use the browser debug tools:

                    http://www.vbulletin.com/go/vb5debug
                    Vote for:

                    - *Admin Settable Paid Subscription Reminder Timeframe*
                    -
                    *PM - Add ability to reply to originator only*
                    - Add Admin ability to auto-subscribe users to specific channel(s)
                    - "Quick Route" Interface...

                    Comment


                    • #11
                      I will try, thank you
                      https://www.vbulletin.com/forum/foru...re-waiting-for

                      Comment


                      • #12

                        Exception trace:
                        ## /home/user/public_html/vb/core/vb/library/content/attach.php(2015) Exception Thrown
                        #0 /home/user/public_html/vb/core/vb/library/content/attach.php(557): vB_Library_Content_Attach->checkAndFixImageExtension('jpg', Array)
                        #1 /home/user/public_html/vb/core/vb/api/content/attach.php(389): vB_Library_Content_Attach->uploadAttachment('1', Object(stdClass), true, false)
                        #2 /home/user/public_html/vb/core/vb/api/content/attach.php(343): vB_Api_Content_Attach->uploadAttachment(Object(stdClass))
                        #3 [internal function]: vB_Api_Content_Attach->upload(Object(stdClass))
                        #4 /home/user/public_html/vb/core/vb/api/wrapper.php(129): call_user_func_array(Array, Array)
                        #5 [internal function]: vB_Api_Wrapper->__call('upload', Array)
                        #6 [internal function]: vB_Api_Wrapper->upload(Object(stdClass))
                        #7 /home/user/public_html/vb/includes/api/interface/collapsed.php(91): call_user_func_array(Array, Array)
                        #8 /home/user/public_html/vb/includes/vb5/frontend/controller/uploader.php(706): Api_Interface_Collapsed->callApi('content_attach', 'upload', Array)
                        #9 /home/user/public_html/vb/includes/vb5/frontend/controller/uploader.php(820): blueImpUploadHandler->handle_file_upload('/tmp/phpieQNFu', '48645778806408....', 70209, 'image/jpeg', 0)
                        #10 /home/user/public_html/vb/includes/vb5/frontend/controller/uploader.php(305): blueImpUploadHandler->post()
                        #11 [internal function]: vB5_Frontend_Controller_Uploader->actionUpload()
                        #12 /home/user/public_html/vb/index.php(74): call_user_func_array(Array, Array)
                        #13 {main}
                        https://www.vbulletin.com/forum/foru...re-waiting-for

                        Comment


                        • #13
                          Asked a developer to take a look when he has time. It shouldn't register as a JPG file.
                          Translations provided by Google.

                          Wayne Luke
                          The Rabid Badger - a vBulletin Cloud demonstration site.
                          vBulletin 5 API

                          Comment


                          • #14
                            Thank you wayne. I'm waiting
                            https://www.vbulletin.com/forum/foru...re-waiting-for

                            Comment


                            • #15
                              Please open a JIRA with this information:
                              1. The *original* image with the same name, zipped
                              2. which image library is being used GD or ImageMagick.
                              3. The version of vBulletin being used
                              4. The stack trace provided above in Post 12.
                              Translations provided by Google.

                              Wayne Luke
                              The Rabid Badger - a vBulletin Cloud demonstration site.
                              vBulletin 5 API

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X