cancel
Showing results for 
Search instead for 
Did you mean: 

Error ..../upload/index.html not found when using SAP.M.UploadCollection

0 Kudos

I am trying to use SAP.M.UPLOADCOLLECTION class to provide upload attachment functionality to a custom SAPUI5/Fiori Application.

I have added the upload collection in my XML file and set the model in my javascript file.

I can navigate to the view, see the upload collection control on the screen and everything looks ok.

When I actually try to upload a file, I get the following error message:

GET https://<myhost>:<myport>/sap/bc/ui5_ui5/ui2/upload/index.html 404 (NOT FOUND).

Unable to find any info regarding this.

Does anyone have any idea if this something to do with my code specifically or something system related (perhaps my UI stack level or an SICF node not activated)?

Let me know if you need anymore info.

Any help would be much appreciated.

View Entire Topic
ugurkaya
Active Participant

Hey Mitchell,

You should set upload url for that control before uploading.

for example:

this.getView().byId("UploadCollection").setUploadUrl("/sap/opu/odata/sap/ZMY_SERVICE/AttachmentSet");

Regards

Ugur

0 Kudos

I feel so dumb. Something so obvious. Stared at the API for ages and now it's plain as day.

Thank you so much!

0 Kudos

This approach is not working for me.Can you help me on fixing it?