Skip to Content

FileUpload of sapui5 .

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?

FileUpload.PNG (4.5 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 28, 2016 at 10:12 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Manali Shah

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.