By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,453 Members | 961 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,453 IT Pros & Developers. It's quick & easy.

Storing file path in browse textfield

P: 8
Hi

I was wondering can anyone help me i cant find what I need on the net. Im using <input type="file" name="attachfile" size="32"> HTML
to browse for a local file but instead of uploading the file I want to save the path. i.e. "This file can be found at this location: ...."
The textbox and button cant seem to be edited individually. Can it be done using JS? Any help would be great.

Thanks
Dave
Jun 21 '07 #1
Share this Question
Share on Google+
1 Reply


100+
P: 428
var file_path=document.getElementsByName('attachfile')[0].value;
Jun 21 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.