Error 500 when uploading company logo or adding attachments

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • antar7
    Junior Member
    • Feb 2025
    • 3

    Error 500 when uploading company logo or adding attachments

    Since updating to ESPO v 8.4.1 I am getting an Error 500 in the UI when I try to change to company logo or add other attachments. This however occurs only on some ESPO instances, others worked without a problem. I have checked the permission but IIS Users have full permission as it should be. I am really at a loss here... I have never seen someone encounter this problem in the forums.
    Here is the entry from the logs:

    [2025-02-17 12:59:47] DEBUG: API (400) No file contents.; POST /Attachment; Route pattern: /{controller}; Route params: Array ( [controller] => Attachment [action] => create )
    [2025-02-17 12:59:47] WARNING: (400) No file contents. :: POST /Attachment :: C:\inetpub\wwwroot\PH\espocrm_test\application\Esp o\Classes\Record\Attachment\CreateInputFilter.php( 107)
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1630

    #2
    The error says, that your file has no content. Is your file a jpg or jpeg? Then it can be, that the server cannot read the format correctly. Try to open the logo image in a image editor and save again with the same name. I encounter this alway, when I download images from e.g. Whatsapp, that these images cannot be read by some programs. I then open those images in Paint and save them again. Then it works.

    Comment


    • antar7
      antar7 commented
      Editing a comment
      It's a png file. Unfortunately that didn't work. Tried saving it again, even renaming it to a jpg. Still the same error
  • antar7
    Junior Member
    • Feb 2025
    • 3

    #3
    For some reason I am able to upload a different logo with 11 KB size, but the one with 14 KB over more does not work. Maximum file size upload is set to 256 MB.

    Comment

    • antar7
      Junior Member
      • Feb 2025
      • 3

      #4
      It seems that any file (png, jpeg, pdf, txt) under ~ 14 KB works when attaching or uploading. Anything more than that and I get the aforementioned error. All necessary file upload restrictions are set to much larger quantities in config.php and php.ini

      Comment

      • shalmaxb
        Senior Member
        • Mar 2015
        • 1630

        #5
        Did you see this?
        Hi, I cannot upload documents or create email with attachment larger than 12 KB. php.ini settings for upload_max_filesize and post_max_size both are set to

        Comment


        • antar7
          antar7 commented
          Editing a comment
          It seems to have worked! Thank you so much!
      Working...