Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FileUploader, how to add Parameters?

Hi experts,

I'm trying to import an excel file into a table using the FileUploader control.

For that i need to send the table content to the backend together with the file.

I saw there is a property parameters[] in this control, but i don't really get it how to use it.

In the "change" event from the control, I'm trying to add some parameters, but it doesn't accept them with fileUploader.addParameter("someContent")

What kind of values does this method accept?

and what is the best way to send some data to the backend through the fileUploader control?



Former Member
Former Member replied

The problem was that we are using an older version of the sapUi5 library.

The sap.ui.unified.FileUploaderParameter is since version 1.21.0. and with versions below we need to use the sap.ui.commons.FileUploaderParameter

Thanks for the help!

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question