on 04-21-2009 1:41 PM
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.
Not solved completely...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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()
Hi,
it store the file in the server, just see you can find in the ECC ,
Cheers,
Apparao
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.