Announcement

Collapse
No announcement yet.

Is it possible to update an attachment?

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

  • Is it possible to update an attachment?

    Hi,

    We have an application that's going to digitally sign attachments on EspoCRM (v 5.1.2)

    Until now, we have sucessfully downloaded and signed the files, but updating them is not working.

    We have tried PUT and PATCH request to /api/v1/Attachment/{id} with the file encoded in JSON like this:

    {
    "file": "data:application\/pdf;base64,(encodedbytes...)"
    }

    The request returns 200 OK, but the attachment is not updated

    Are we missing something?

    It's ok to update the files in /data/upload directly ?

    Thanks for your help,
    Last edited by BillVelasquez; 06-11-2019, 09:16 PM.

  • #2
    Hola Bill, check this thread to see if it helps. I believe that you can modify the image file and write it directly to the directory. As long as you save it with the same name, which is the ID valve of the attachment record.

    I add Attachments in Knowledge Base. I want move file Attachments to another Server. How Develop function on Espo? Thank, I'm not good english

    Comment

    Working...
    X