OpenNTF / das-api-specs

Apache License 2.0
14 stars 7 forks source link

Working with files attached to document #11

Open dev-ng opened 3 years ago

dev-ng commented 3 years ago

Hi,

With DAS I can work with files attached to an item (very often it's 'Body').

Is there a way to work with Attachments/Files attached to a document, those not attached to an item? They are normally there when an incoming email comes or when a file is attached using classical web approach.

I'm missing a method to get a list of all files (file names) ($FILE items) and a method to get the content of the file by it's name/id.

Regards, Nick

ddelay commented 3 years ago

Sorry. I don't think the DAS data API supports that.

However, you can read file attachments using a core Domino web engine URL. I'm not absolutely sure the Domino web engine does what you want, but it's worth investigating.

dev-ng commented 3 years ago

Thank you for reply.

Indeed, I can read file attachments using Domino web engine. I would prefer not to mix different approaches in my app, but I can live with this.

However, getting a list of all file attachments is an issue. I don't see a way to do it without customisation on server side. Do I miss something?