cancel
Showing results for 
Search instead for 
Did you mean: 

FileUpload of sapui5 .

former_member197888
Participant
0 Kudos

I am using  FileUpload control to upload a file .

This is my code for the same in the view file .

Now my requirement is that when I load my page a file named "Data.csv" should automatically get loaded from my system by default .

Can this be done using any property of FileUpload control of sapui5 .  Can anyone guide me for this?

Accepted Solutions (0)

Answers (1)

Answers (1)

bernd_speckmann
Contributor
0 Kudos

If you want to automatically upload a file from your local system when opening your page I don't think this is possible.

former_member197888
Participant
0 Kudos

ok . Can you suggest anyone workaround to achieve my requirement ?

Former Member
0 Kudos

you could ask the user to upload a CSV, if he visits the page the first time, save that data and display it for further times. the upload-mechanism is a highly secured area, security is provided by the browsers.

if you need the data up-to-date without user interactions, you have to configure the user-computer (maybe with active directory or cronjobs) itsself, to upload the file to a certain (network-)place and load the file from there.