cancel
Showing results for 
Search instead for 
Did you mean: 

FileUploader SAPUI5 Version 1.103

axitycesarfelce
Participant
5,973

Hi all,

The past week SAP upgraded the Fiori Launchpad Sites in Neo with Maintenance version 1.103. Now my apps are failing specifically with FileUploader Component.

The Script is easy

var fU = this.getView().byId("idfileUploader");
var domRef = fU.getFocusDomRef();

The response of domRef is version 1.103 is <Button.....

The response of domRef version 1.102 is <Input.....

We need the input, how does it work in the new version, since the demokit is still in 1.102.

var file = domRef.files[0]; //Input
var reader = new FileReader(); reader.onload = function (evt) {...} reader.readAsBinaryString(file);


regards,
César

View Entire Topic

Hello binpath82.

I was facing the same issue in my application.

I have resolved it by adding the change event instead reading from domRef() at upload button press.

XML View:

<u:FileUploader id="fileUploader" change="onFileChange"/>

JS Controller:

onFileChange: function(oEvent){

var file = oEvent.getParameters("files").files[0];

}

Regards,

Jaffar.

axitycesarfelce
Participant
0 Kudos

Hello jaffarsadik,

Awesome! it's not a bad idea! Let me test it!

regards,

Tamilarasi
Newcomer
0 Kudos
I have similar issue, can you please provide more details on how is this resolved?
jorgeflorez
Explorer
0 Kudos
thanks!!! this Idea works fine for me, I don't need the files go directly to backed