Re: $_FILES path on client's machine?
| From: | Chris | Date: | Sun, 18 Feb 2007 23:03:51 +0000 |
| Subject: | Re: $_FILES path on client's machine? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249002@lists.php.net to get a copy of this message | ||
Skip Evans wrote:
Hey all, I get the feeling from not finding an argument for the path on the client's machine for the complete path of a file in $_FILES that it might not be available for security reasons? The reason I am interested in this is to restore the value of a input type='file' field in a form if the user has to return to the form for validation reasons. I'd like to restore the full value so the user does not have to browse the file again.Nope. Huge security hole ;) I could prefill the form with something like "/etc/passwd" if you're on a *nix desktop, hide the file input box through css and grab all your details without you knowing it. -- Postgresql & php tutorials http://www.designmagick.com/