on 02-21-2006 9:23 AM
i want to get the full pathname when using a fileupload control
like if i select "a.jpg"
i would like to get the string "c:/pictures/a.jpg"
the resource attribute that i associate with the fileUpload control in the View controller context has only getResourcename() which returns "a.jpg" and getResourceType() which returns "jpg" !
when i select a file using the fileupload instance i can see the fully qualified name in the inputfield associated with the fileUpload !
My aim is to select this file,open it and extract some data to a new file!
(note: i am new to netweaver)
Sorry, as per my knowledge you cannot get the full path of the file in your client system.
You can access the file directly once it has been uploaded to the server.
For eg:
c: in Web Dynpro would mean the c: drive of the server.
Regards,
Noufal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Indranil,
You may only get file name via getResourceName().
Returning client file path considered harmful from security stand point and browsers do not submit such information.
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
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.