You are here: Re: [PHP] Re: upload file - clients path to file? « PHP « IT news, forums, messages
Re: [PHP] Re: upload file - clients path to file?

Posted by angelo on 10/06/51 11:25

Thanks for the replies.

Well basically i need it for an "add products" page and if the users doesnt fill
in all the fields correctly I display some error message as well as populate the
textfields and dropdown lists with the values they previously entered, so if
they entered/selected the file I want to display it again so they don't have to
upload the file again. I know that I could do it without the user knowing
(backed) but then they might think they have to select the file again because
the upload field will be blank.


Quoting Mark Rees <mrees@itsagoodprice.com>:

> > Hi all.
> >
> > 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.
>
>
> No, this would be a security risk. If all your users are on an intranet,
> you may be able to implement some kind of client-side scripting to discover
> the location, then post it as part of the form. Even this will probably
> involve amending local security settings on each machine.
>
>
> > I know its possible to get the file name but I need the whole path.
>
>
> What do you need it for? Perhaps there is another way to solve this problem?
>
>
> > is this possible?
> > thanks in advance.
> >
> > --
> >
> > Angelo Zanetti
> >
> >
> >
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>




----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

 

Navigation:

[Reply to this 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

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