HOW TO download attachments from a section

Hi community

is it possible to download with odata an attachment from any section ?

Like 0

Like

2 comments

Hello Stefano, 

 

Yes. I will show you an example how to achieve it: 

 

1. Choose the section you want to download from and find the record.

For example in Account section the request will be 

http://localhost:1337/0/odata/AccountFile and so on.

Here is an example for Contacts from my local app.

Find the needed file and  retrieve the Id from the attachment you want to download:  

 

 

2. Call this endpoint: 

 

http://localhost:1337/0/odata/ContactFile(fabc22d4-5d91-435c-8dd4-46cfd…

 

Where fabc22d4-5d91-435c-8dd4-46cfd626345c - the Id from step 1.

 

Best Regards, 

 

Bogdan L.

Thank you very much

Bogdan Lesyk,

Show all comments