cancel
Showing results for 
Search instead for 
Did you mean: 

openUI5 fileUploader issue with uploadUrl

Flavio
Active Contributor
0 Kudos

Dear Experts,

I would like to upload a file to the webserver for further processing using openUI5, and was trying the sample code available from sap.ui.unified.FileUploader (FileUploaderComplex);

however, nothing is actually uploaded (uploadUrl is coded as follows, and folder 'upload' is available on the webserver)

uploadUrl="upload/"

The console shows this log:

Do you have any suggestion or working code example to help me with this?

Many thanks and best regards,

FC

View Entire Topic
maheshpalavalli
Active Contributor

I am not sure if it works like that, the Upload URL should be a webhook or a service that saves the data to a table or in your case creates a file in the folder. So the URL that you have specified there should handle the save/file creation logic, like how it is done in case of SAP ABAP.

https://blogs.sap.com/2018/06/22/media-handling-in-odata-in-sap-ui5/

Flavio
Active Contributor
0 Kudos

Thank you maheshkumar.palavalli for your answer;

Do you have any example how I could build / manage a webhook so to get the file saved in a webserver folder?

Thanks again and best regards,

Flavio