Reply to Re: [PHP] upload file - clients path to file?

Your name:

Reply:


Posted by cron on 10/10/76 11:25

Interaction to write to a input file type is denied in browsers not to read
the value so you can can get the full path using JavaScript like any other
input in the form(document.formname.inputname.value) and pass it to other
input field lets say input fullpath using something like
document.formname.fullpath = document.formname.inputname.value <-- all using
javascript



So yes you can get the fullpath however you should redirect your question
to a JavaScript List or perhaps a javascript-php list.



Regards



Angelo



----- Original Message -----
From: "Jasper Bryant-Greene" <jasper@bryant-greene.name>
To: <php-general@lists.php.net>
Sent: Tuesday, August 30, 2005 7:14 AM
Subject: Re: [PHP] upload file - clients path to file?


> angelo@zlogic.co.za wrote:
> > I havent found an answer after looking at the manual. I'm trying to find
> > out if it possible to find the path of the file on the clients pc once
> > a form has been submitted with the file upload form.
> > I know its possible to get the file name but I need the whole path.
> > is this possible?
>
> Not with pure PHP. Maybe with some JavaScript, but most browsers heavily
> limit any interaction with <input type="file"> controls from JavaScript.
> So probably not at all.
>
> --
> Jasper Bryant-Greene
> Freelance web developer
> http://jasper.bryant-greene.name/
>
> If you find my advice useful, please consider donating to a poor
> student! You can choose whatever amount you think my advice was
> worth to you. http://tinyurl.com/7oa5s
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация