Announcement

Collapse
No announcement yet.

Email Image/Attachment (Incoming) - 403 Forbidden

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

  • Email Image/Attachment (Incoming) - 403 Forbidden

    Anyone know how I can fix this to work? It been awhile and still no luck.

    Attachment is being as inline and EspoCRM don't accept these file format even though I allowed for it, perhaps in the wrong field...? But there is no other field we can Edit in the GUI.

    Here is the field setting.
    Click image for larger version

Name:	image.png
Views:	95
Size:	46.6 KB
ID:	110012


    Here is the error
    Click image for larger version

Name:	image.png
Views:	54
Size:	7.9 KB
ID:	110013

    Here is the email look like.
    Click image for larger version

Name:	image.png
Views:	53
Size:	2.7 KB
ID:	110014

  • #2
    Try Reset to Default and send the test email again. Also try specifying permissions again: https://docs.espocrm.com/administrat...n/#permissions.
    If the situation recurs, send the EspoCRM error log.

    Comment


    • esforim
      esforim commented
      Editing a comment
      Reset what to default? Does it fall under Attachments field for example inline image? Thank you.

  • #3
    There's no MIME type "image/jpg". It should be "image/jpeg".

    Maybe an issue is the code that generated that email.

    Comment


    • #4
      Reset what to default? Does it fall under Attachments field for example inline image?
      I mean field settings​​​​​​​:

      Click image for larger version

Name:	image.png
Views:	52
Size:	22.9 KB
ID:	110087

      Comment


      • #5
        There is no issue with the image itself. I can open it fine in Webmail.

        If it a codec issue or incorrect file extension, is there any way to force it to be allow when importing (POP) email?

        If I download the file, upload it somewhere else, for example in Documents, there is no issue in EspoCRM, seem to be email importing related?

        The same file from the email:
        Click image for larger version

Name:	image.png
Views:	64
Size:	13.9 KB
ID:	110090

        Comment


        • #6
          When email was composed, the client (or some script if an email is generated somewhere) added an image attachment and set an incorrect mime-type.

          Comment


          • esforim
            esforim commented
            Editing a comment
            Thank you. That is certainly odd that email does that. But I also find it odd that we can open the same file without making any edit by just re-uploading it, but I'm not a coder so my thinking is on an user level.

            I guess I just wait for the future. Thank you.

          • yuri
            yuri commented
            Editing a comment
            File can be opened. But it cannot be displayed inline as the system blocks it (because of the wrong mime type of the attachment). It's a programmer's mistake in the code that composed the email. We unlikely ever will display inline images regardless of mime types.

            You can add allowed mime types in metadata: https://github.com/espocrm/espocrm/b.../image.json#L2

            But use "__APPEND__" when extending arrays.
            Last edited by yuri; 09-10-2024, 10:48 AM.

          • esforim
            esforim commented
            Editing a comment
            Thank you! Sorry to be nuisance, any way to make it upgrade safe with a custom file?
        Working...
        X