Announcement

Collapse
No announcement yet.

403 error when uploading image with .jpeg extension, but no error with .jpg

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

  • 403 error when uploading image with .jpeg extension, but no error with .jpg

    I'm getting a 403 when I try to upload files with a .jpeg extension. These are genuine jpeg files. If I rename to .jpg, the file uploads ok. The message appears to be coming from Espo with the following error "Error 403: Access denied Not allowed file type".
    I've tested on 7.3.3 and also 7.4.3. I dont have any customisations for the image.json file, and looking at that file it actually explicitly specified image/jpeg as being accepted, which doesn't make sense if I can upload .jpg but can't upload files with .jpeg extension.
    Any pointers would be really appreciated.​

  • #2
    Found the issue - ./Espo/Resources/metadata/app/file.json had a space after the jpeg extension:

    "jar": ["application/java-archive"],
    "jpeg ": ["image/jpeg"],
    "jpg": ["image/jpeg"],
    "js": ["text/javascript"],

    removed the space and rebuilt and this fixed it. I dont know how this got in there, as I've never edited this file before.

    Comment


    • #3
      Actually I see this in the file on github, maybe still an issue?

      Comment

    Working...
    X