The @cap-js/attachments package is a CDS plugin that provides out-of-the box asset storage and handling by using an aspect Attachments. It also provides a CAP-level, easy to use integration of the SAP Object Store.
Simplified model for Attachments where user must define Composition of Attachments on their entity's attachments properties
No longer need express bootstrap handler to serve Image streams on /media. They are not served directly from the image/attachments content property
Uses new Fiori with special UI annotation MediaResource to trigger table type uploadTable
Both local and hybrid cases use generic Attachments/Images entities to store all meta information, but sources (content) are stored in the database/S3 bucket respectively and streamed on demand
Kick-off demo app (with UploadTable feature)
Requires
src="https://sapui5untested.int.sap.eu2.hana.ondemand.com/resources/sap-ui-core.js"
in incidents-app/app/incidents/webapp/index.html L15.What's new:
Composition of Attachments
on their entity's attachments properties/media
. They are not served directly from the image/attachments content propertyMediaResource
to trigger table typeuploadTable
content
) are stored in the database/S3 bucket respectively and streamed on demand