TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-22-2009, 05:16 PM   #1 (permalink)
The Contributor
 
dhaval's Avatar
 
Join Date: Jul 2009
Posts: 37
Thanks: 1
dhaval is on a distinguished road
Default Get full path

Hello Friends,

Once again i do have a question
I want entire path from input type=file through javascript
what to do?

If anyone know than please let me know

Thanks in advance
dhaval is offline  
Reply With Quote
Old 12-22-2009, 06:56 PM   #2 (permalink)
The Contributor
 
SaintIsaiah's Avatar
 
Join Date: Jan 2009
Posts: 48
Thanks: 5
SaintIsaiah is on a distinguished road
Default

Next time, a question like this would be better suited in the javascript forum. And can you clarify what you're trying to do, because I'm not really understanding your question.
SaintIsaiah is offline  
Reply With Quote
Old 12-22-2009, 08:28 PM   #3 (permalink)
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
Old 12-22-2009, 09:23 PM   #4 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by SaintIsaiah View Post
Next time, a question like this would be better suited in the javascript forum. And can you clarify what you're trying to do, because I'm not really understanding your question.
My thoughts exactly when I first tried to help him. But in time I realized that this guy doesn't do that, he has not once asked a question in a response worthy manor. He won't usually even respond with needed information. I realized it on this thread, Write Image in PDF through php script

Though to answer the question, I doubt its possible. A fast Google search should answer your question.
__________________

Village Idiot is offline  
Reply With Quote
Old 12-23-2009, 04:28 AM   #5 (permalink)
The Contributor
 
SaintIsaiah's Avatar
 
Join Date: Jan 2009
Posts: 48
Thanks: 5
SaintIsaiah is on a distinguished road
Default

Quote:
Originally Posted by Village Idiot View Post
My thoughts exactly when I first tried to help him. But in time I realized that this guy doesn't do that, he has not once asked a question in a response worthy manor. He won't usually even respond with needed information. I realized it on this thread, Write Image in PDF through php script

Though to answer the question, I doubt its possible. A fast Google search should answer your question.
Wow Village, I just read that topic. What's the point of asking for help without any examples to work with? I wonder if he actually understands english or if he's just translating text on Babelfish.
SaintIsaiah is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Text Searches with Query Expansion Orc MySQL & Databases 4 12-19-2008 08:39 PM
Nginx Rewrite Causing Wrong Path for PHP Script stewart General 0 11-09-2008 12:32 AM
PDF Full text search using PHP code_junkie Advanced PHP Programming 1 09-18-2008 07:59 PM
ZF Custom Helpers Path freenity Advanced PHP Programming 0 04-27-2008 05:39 PM
$36,000 - Full Time PHP Coder / Designer Position Rex The Lounge 10 01-18-2008 08:32 PM


All times are GMT. The time now is 12:55 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design