cancel
Showing results for 
Search instead for 
Did you mean: 

Upload File from local machine

Former Member
0 Kudos

Hi,

Please tell me how to upload file from local machine.

I have successfully uploaded files by using File Upload UI element where I am able to select the required file.

Now I have a requirement of picking up a file from desktop using the code.

If I am simply giving the path "C:
Folder\file.txt", it is searching on server.

Thanks!!

Anubha

Accepted Solutions (1)

Accepted Solutions (1)

nikhil_bose
Active Contributor
0 Kudos

if you want to access client file system through dynpro, the way out is using FileUpload UI Element.

For multiple file upload you can use different FileUpload UI elements, in most of the sites, you would have came across.

or you can try for creating the same dynamically, if the number of files needs to upload is determined at runtime.

nikhil

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Anubha,

We cant upload the file programatically without using the file upload user interface element. Web applications dont have access to the clients local file system.

Regards,

Shyam.

Former Member
0 Kudos

Hi,

Thanks for your reply.

My requirement is to upload files from multiple folders at time. If I am using File Upload UI element, it will allow me to select one file at time.

can you please suggest me any way of doing this.

Regards,

Anubha

Former Member
0 Kudos

Hi,

Then put one button to add another file. If this button is clicked create FileUpload UI element dynamically.

Regards,

Shyam.

former_member197348
Active Contributor
0 Kudos

Hi Anubha,

Check this [thread|] once.

Regards,

Siva