TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   Get full path (http://www.talkphp.com/general/5184-get-full-path.html)

dhaval 12-22-2009 05:16 PM

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

SaintIsaiah 12-22-2009 06:56 PM

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.

etoolbox 12-22-2009 08:28 PM

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.

Village Idiot 12-22-2009 09:23 PM

Quote:

Originally Posted by SaintIsaiah (Post 29545)
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, http://www.talkphp.com/general/4940-...hp-script.html

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

SaintIsaiah 12-23-2009 04:28 AM

Quote:

Originally Posted by Village Idiot (Post 29548)
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, http://www.talkphp.com/general/4940-...hp-script.html

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.


All times are GMT. The time now is 07:13 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0