Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Can't download attachment with empty file name via REST API

tilen
Tera Contributor

Hello,

 

I ran into some trouble when downloading attachments via REST API. Specifically, if an attachment's file name is an empty string "", I get the error that 

"Exception while executing request: File name must not be null or empty".
However, on the UI I am able to locate the attachment even if it doesn't have a name and I can download it. When downloading the attachment via the UI, it gets the name "sys_attachment". I'd like to know if there's a way to avoid getting this error when downloading attachments that don't have a file name via API, or is the only solution to rename the attachments and only then download them?
0 REPLIES 0