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

  • esforim
    commented on 's reply
    Confirm and probably on tasklist: https://forum.espocrm.com/forum/bug-...load#post90702

  • item
    commented on 's reply
    yes, it'seemt a issue.

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

    Leave a comment:


  • nicko
    replied
    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.

    Leave a comment:


  • 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.​
Working...
X