Thread: Get full path
View Single Post
Old 12-22-2009, 08:28 PM   #3 (permalink)
etoolbox
The Wanderer
Newcomer 
 
etoolbox's Avatar
 
Join Date: Dec 2008
Location: Auckland, NZ
Posts: 24
Thanks: 0
etoolbox is on a distinguished road
Default

I don't know what relevance the full path of the file on the user's computer has to your web application (I'm assuming that's what you are trying to do) but you can get the filename component like this, where "file" is the id of your input field:

document.getElementById('file').value

I would suspect you cannot get the full path for security reasons.
__________________
Chris Hope's LAMP Blog: http://www.electrictoolbox.com/
etoolbox is offline  
Reply With Quote