cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the Path of the Source file in the local system while uploading

Former Member
0 Kudos

Hi,

I am using the File Upload UI in WebDynpro Java. When I am uploading the file from my local system to the server, I need to retrieve the full path of the file in the local system from where the I am uploading it. How can I find this? Any help is highly appreciated.

Thanks!!

Regards,

Vivek.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Not solved completely...

Former Member
0 Kudos

Hi Vivek,

Bind the Upload UI element resource property to a Attribute of type Resource. After you upload the file you can use getURL() method of IWDResource to get the path of the uploaded file.

Hope this helps!!

Cheers,

Arafat

Former Member
0 Kudos

Hi,

I am sorry, if I didnt explain it properly. I know how to get the uploaded location in the server. I just wanted to the location from where the file is being uploaded.

Thanks,

Vivek.

Former Member
0 Kudos

Hi Vivekanandhan Srinivasan,

Before uploading did you defined where it is stored?

Regards,

Manivannan P

Former Member
0 Kudos

Hi,

The browse button in the File Upload UI element is to browse the file system of the local system.

I am really looking for some help to find the source location of the uploading file.

Thanks.

Regards,

Vivek

Former Member
0 Kudos

Hi,

Post your uploading code

Regards,

Manivannan P

iker_espinosa
Participant
0 Kudos

Local directory:

FileUpload fu = (FileUpload)this.getComponentByName("myfileupload");

IFileParam fileParam = fu.getFile();

// Get the temporary file name

File f = fileParam.getFile();

String fileName = fileParam.getFileName();

logger.info("fu.getFile().getSelectedFileName() " + fu.getFile().getSelectedFileName());

This is the local directory:

fu.getFile().getSelectedFileName()

Former Member
0 Kudos

Hi,

it store the file in the server, just see you can find in the ECC ,

Cheers,

Apparao

former_member185086
Active Contributor
0 Kudos

Hello Srinivasan

Please refer following threads

1.[file path from the server isn't work|]

2.[file|]

3.[file path|]

Best Regards

Satish Kumar

Former Member
0 Kudos

Hi,

Thanks for your reply. I am looking for the source path of the file and not the path where it will be stored.

Apart from this is there any way to find the path of a file in the local system.

Thanks.

Regards,

Vivek.

srinivas_sistu
Active Contributor
0 Kudos

Hi,

I dont think so you can get the full path of a file which is on local system, you can only get the file name. Even I faced the same problem. Any ways wait for other responses also.

Regards,

Srinivas