[thelist] Local path of uploaded file

Nan Harbison nan at nanharbison.com
Wed Oct 28 08:56:26 CDT 2009

I use a great class for file uploads.
It does all the work for you, including renaming the file for securitty and
has an example of how to use it.,

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Roel Mulder
Sent: Wednesday, October 28, 2009 8:56 AM
To: The List
Subject: [thelist] Local path of uploaded file

Hi all,
So I have a form that uploads a file, along with some text fields. PHP
validates the form, and returns the visitor to the form if not all criteria
are met.
The upload form is then empty.

My question is: how do I keep the local path + file name in the <input
type="file" /> input field?

Google points me back in time to 2003:
where it should be provided by js. However, when I test it, it only returns
the original file name (same as $_FILES['userfile']['name'] ).
Actually FF returns the file name "test-file.pdf" only, IE returns
"C:\fakepath\test-file.pdf" whilst the file came from a network share.

Does anyone have a suggestion, or provide a hyperlink to a working example?

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 

More information about the thelist mailing list