on 10-24-2016 6:58 AM
Hi Community,
I would like to implement sap.m.UploadCollection in XML-View (I need a Picture-Upload + List). sap.m.UploadCollection seems to be the right solution beside sap.ui.unified.FileUploader.
I want to collect pics first (no instant upload) and on a later Button Click, the Upload via ODATA-service should go.
After the user selects a jpg-File, I need to show a thumbnail in the FileList. I did not find any event, I could trigger for setting a BLOB-Url to the uploaded item. Only default icon is displayed.
Does some have a solution for this?
We are using SAP UI5 version 1.38
Thanks!
michael
Hi Jamie,
thanks for your answer and sorry for my late reply.
The change Event is too early, as I see no chance to manipulate the actually uploading item. The Event-object just brings Files, no UploadCollectionItem. The mapping to the item is done somewhere in the Standard coding. Adding property thumbnailUrl to the File-Object fails.
Any further ideas?
Thanks!
michael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Michael Dohse,
I have the same requirement to show thumbnails when uploading images.
Do you have any solutions for this?
Thanks.
Tri
For each item in the list you can use the function setThumbnailUrl to change it as desired.
var myUC = this.byId('myUploadCollection');
var items = myUC.getItems();
items[0].setThumbnailUrl("myurl...");
The sample at
shows the events.
Regards,
Jamie
SAP - Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.