cancel
Showing results for 
Search instead for 
Did you mean: 

get full path from fileupload

Former Member
0 Kudos

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)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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