Can't download attachment with empty file name via REST API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 07:39 AM
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