Re: How to capture origional client machine _directory_ and file nameon uploads?
| From: | Nathan Rixham | Date: | Mon, 06 Oct 2008 15:56:20 +0000 |
| Subject: | Re: How to capture origional client machine _directory_ and file nameon uploads? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-281493@lists.php.net to get a copy of this message | ||
J. Hill wrote:
This should be trivial, but apparently not -- or maybe I just need more caffeine. My searches have come up empty. I am trying to get not only the original file name on uploads, but also the original directory on the client machine as well. The purpose is for users who make a mistake on another part of the form; when the form is returned for them to complete properly, all of the correct values are automatically filled in. That's trivial in most instances, but I'm not finding a solution for file uploads. This seems like a common need. Any suggestions? Thanks in advance, JeffAFAIK that info is outside the security sandbox of web browsers; just like you can't resend the file or autopopulate what file you want them to upload. only way is to use a third party browser extension or app; java uploader or such like and you may have some luck. -- nathan ( nathan@kraya.co.uk ) { Senior Web Developer php + java + flex + xmpp + xml + ecmascript web development edinburgh | http://kraya.co.uk/ }