API requests to /api/v1/Attachment responds with 403 forbidden

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hmcquaid
    Junior Member
    • Aug 2025
    • 2

    #1

    API requests to /api/v1/Attachment responds with 403 forbidden

    I have had no issue with the Attachments API on any of my other instances of EspoCRM, but one instance in particular does not allow me to Upload attachments or get attachments. my /data/upload folders are configured with 775 permissions on the folders and 664 for files.

    URL I am using for my API request: https://<url>/api/v1/Attachment

    Any ideas about why I am forbidden to use the Attachments API?
  • jamie
    Member
    • Aug 2025
    • 53

    #2
    who is the owner?

    Comment

    • hmcquaid
      Junior Member
      • Aug 2025
      • 2

      #3
      The owner is "www-data" for all of my folders in my espocrm project. I can upload attachments just fine through the UI.

      Comment

      • yuri
        EspoCRM product developer
        • Mar 2014
        • 9370

        #4
        I recommend checking what message is logged in the log file.
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment

        Working...