Krik;10962276 wrote:If the user is uploading to the server, yes, the file is held in a temp directory until your php tells it where to go. If it wasn't held in a temp directory it would not exist when php tried to move it to a directory.
Dagons link to Handling file uploads is a very good resource for file uploads.
If the user is uploading to the server it is not javascript it is PHP.
And if you did it too many "moons" ago the whole method of handling file uploads has changed. So you may be looking at having to relearn it.
Well now that we are starting to get and understanding and yes <input type='text'> is in a form, I need to be able to browse for an empty directory with a "Browse" button on the form.
I have this code:
<input type='text' name='land' size='32'>
<input type='button' value='Browse' onClick='GetDirectory();'>
but the javascript I found for "GetDirectory()" assumed that I would use type='file' in my first input field, and just parses off the directory from there, that method requires that there is at least one file in the directory to select.
There is a way, in javascript, and also in PHP to actually create/call a popup "Browse" window that just looks for a directory, which is what is needed when the directory you are searching for is empty.
That is my problem. Slept since I did this about ten years ago, and forgot.
Thanks!
OMR