cancel
Showing results for 
Search instead for 
Did you mean: 

How to Preview the uploaded file/attachment in local system using uploadcollection in SAPUI5

0 Kudos

Hello Peers,

I would like to know how to Preview the uploaded file/attachment in local system using uploadcollection in SAPUI5 ?

Note : I am using instantUpload property and after uploading the document, user anted to see the as a "Preview" of what he uploaded..

Could you please suggest me , how we can achieve this.

Regards,

Arjun.

Accepted Solutions (0)

Answers (2)

Answers (2)

prashant9444
Advisor
Advisor
0 Kudos

Hi Arjun,

If your requirement is uploading images & want preview of it, then UI5 has own control Image Editor (sap.suite.ui.commons.imageeditor).

Regards,

Prashant

0 Kudos

Hello Prashanth,

I was trying only for PDF which i should preview either in Next browser tab or in the screen itself on click of my attached link , in my case the attached doc is not clickable , not sure what i did wrong, will it be great if you can help on this.

saurabh_v
Active Participant
0 Kudos

For your UploadCollectionItem within the UploadCollection's items aggregation, are you setting the url property?

maheshpalavalli
Active Contributor
0 Kudos

I usually refresh the attachments after uploading, so it will fetch all the attachments including their key fields then I will generate the upload url in a formatter and on click of it it will trigger grtStream method and fetches the attachment

0 Kudos

Hi Mahesh ,

Thank you for your answer, see i wanted to view my PDF file which i have uploaded , for this i used uploadcollectionitem but unfortunately after uploading done my attachment is not clickable , can you suggest me if you aware attached ref screenshpt. capture.png