Hello,
How can I use my Odata filedownload in the fiori UploadCollection?
I already implemented the GET_STREAM Method etc. the download works without a problem if i debug my Odata service.
<UploadCollection id="__collection0" items="{to_Documents}" maximumFileSize="0" maximumFilenameLength="0" mimeType="undefined">
<items>
<UploadCollectionItem contributor="{CreatedBy}" documentId="{id}" enableDelete="false" enableEdit="false" fileName="{FileName}"
mimeType="{mime_type}"
uploadedDate="{ path: 'CreatedOn', type: 'sap.ui.model.type.Date', formatOptions: { style: 'medium' }}"
url="{__metadata/media_src}" visibleDelete="false" visibleEdit="false">
</UploadCollectionItem>
</items>
</UploadCollection>
url="{__metadata/media_src}" does not work, if i click a file, the url comes out like this:
If I debug only my Odata Service, the url looks different at the <SYSTEM_NAME> part. It seems that I have to do some kind of replacing the system name with host and port. How do I do that correctly?
Best Regards,
Marcel