Announcement

Collapse
No announcement yet.

Reason for 'Invalid file content from specified image.'?

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

  • Reason for 'Invalid file content from specified image.'?

    What could be a possible reason for an attachment upload error that says: 'Invalid file content from specified image.'?

    Also: Where do you prefer to save files? Database or some directory?

  • #2
    Make sure the image has the right file extension. If you have a JPG image but call it test.GIF most browsers will show it fine but it would be an invalid file if the system was expecting a GIF.

    Comment


    • #3
      Weird thing is: I am trying to upload a zip file (test.zip), the maximum filesize in the attachment permissions in the AdminCP for zip files is set to '10000000'. The file has a size of roughly 1 MB. Now, when I start a new topic and click on Upload Attachment, then I get this error.

      This happens with all attachments (means I can't upload attachments at all), no matter if it is an image file or something else, I always get: 'Invalid file content from specified image: FILENAME.EXT'

      Is it possible that I have missed something important to be configured in the AdminCP/any config file/database-related, that allowes me to upload things? I can't remember to have this issue in a local installation so far...
      Last edited by TLMD; Mon 19 Aug '13, 12:39am.

      Comment


      • #4
        I've actually seen this before and I am looking into it with another customer. If I don't find my way back here to report, feel free to drop me a VM for this or PM.

        Comment


        • #5
          Originally posted by Zachery View Post
          I've actually seen this before and I am looking into it with another customer.
          Any new information available on this?

          Comment


          • #6
            TLMD, if you're running into this still, let me open a ticket with you. I'll need the specific steps to reproduce.

            Comment


            • #7
              I am running into this issue as well. I hope you don't mind me piggybacking on this thread, but I thought it would be redundant to start a new one.

              I know the files I'm testing with are the correct format, matching their extension. I've saved the same image as .jpg .gif & .png and every time I try to upload any of them as an attachment, I get the same "Invalid file content from specified image." error.

              Also, if I look at the few older attachments we do have, using the Admin > Attachments > Attachment Statistics, none of the old files seem to be there if you 'view content' even though they are supposed to be stored in the actual database.

              Any thoughts on where I should start to try to fix this situation?

              ___________
              vB5.1.3
              Last edited by FBlack-HPath; Thu 2 Oct '14, 7:39pm.

              Comment


              • #8
                I might add that I don't run into this issue anymore. It must have been fixed 'accidently' by some later vB version since system-wise nothing has changed on my side. Or maybe it was fixed because I did a fresh installation of every new version since I guess vB 5.1.2 (before that I did updates and maybe the error was 'carried over' from one version to another, I don't know).

                Are you using a fresh installation of vB 5.1.3, or were you also doing updates from earlier versions?

                Comment


                • #9
                  I am getting the same error (Invalid file content from specified image.)since the latest version 513 was installed. Is there any fix for this please?

                  Comment


                  • #10
                    Originally posted by TLMD View Post
                    Are you using a fresh installation of vB 5.1.3, or were you also doing updates from earlier versions?
                    We're using an upgraded previous version TLMD. We've been running vB for a long time, but we try to stay current with versions. I'm contemplating trying to switch to non-database file storage, but since we're already having issues with attachments, I'm concerned that this won't help and may have an effect on teh files that are supposed to already be stored in the database, since when I click Admin > Attachments > Attachment Statistics and try to look at the previous attachments, nothing really shows up now as far as stored images go.

                    Comment


                    • #11
                      I believe this is down to an incorrect error being surfaced. Check if you have safe_mode or open_basedir restrictions in effect. Make sure your upload_tmp_dir is set to a valid path within your allowed open_basedir paths.

                      Comment


                      • #12
                        Originally posted by Zachery View Post
                        I believe this is down to an incorrect error being surfaced. Check if you have safe_mode or open_basedir restrictions in effect. Make sure your upload_tmp_dir is set to a valid path within your allowed open_basedir paths.
                        ok, thanks. is it something i can do in web host control panel or only a web host company can do it?

                        Comment


                        • #13
                          Originally posted by Zachery View Post
                          I believe this is down to an incorrect error being surfaced. Check if you have safe_mode or open_basedir restrictions in effect. Make sure your upload_tmp_dir is set to a valid path within your allowed open_basedir paths.
                          I've got a replay from the hosting company:

                          "Unfortunately, those items cannot be changed on the shared server. They are implemented as part of our security features on the shared platform."

                          So what can i do now?
                          Last edited by medved; Mon 6 Oct '14, 4:48pm.

                          Comment


                          • #14
                            Find a better webhost. If they don't understand that they've misconfigured their servers that is a scary thing.

                            Comment


                            • #15
                              And what is according to you a good webhost? I am not skilled enough to be able to move all 40 websites i have, it is not so easy, just to change a webhost. All other websites work ok, only a website with vB5 is not working. Why only vB5 website is not working?

                              Comment

                              Related Topics

                              Collapse

                              Working...
                              X