----- Original Message ----- From: "bryan_is_south" Hi all,
This is probably a noob question: I am creating a site on my local computer only...not on a server, and I have an upload file part (<input type='file'>), but I want to know if it is possible to still have the files go to a certain directory on my own computer. In other words, to make sure its working right before it goes up on a real server, I test it and select a file in one directory, and when i submit it, that file automatically is copied and pasted (still in the original directory too, only a copy would be made) into the new directory. Thanks, -bryan ------------------------------------ Hello Brian, There can be a large number if differences between your local PC's config and the server config. Some of these can strongly affect file system operations so please don't assume that something that works on your local PC is going to work on the server. There are two basic ways. One is to 'move' the uploded file from the temporary directory in which case the file will retain the ownership of the user session. The other is to stream it to the new directory and 'unlink' it from the temporary directory. In this case the file will be owned by the script authority. There can be many differences and you will have to set file and folder permission's in accordance with these differences. Thanks, Rob.