Move file rather than delete/ulink
-
Afternoon, after reading and playing, what I want is simple. After someone uploads a file, rather than deleting it, I want to move it to a folder on the same site that is password protected.
I haven’t really done much programming in years, but the place where the file is removed is in the classes.php file, and simply looks like this;
//foreach ( (array) $this->uploaded_files as $name => $path ) {
// @unlink( $path );As you see, it’s commented and the file does get uploaded, but in the above, I would like to say. move that file to ../../secure which is a password protected folder, but I am not sure how to accomplish this.
I am surprised there is no keep on server, etc. as not everyone wants a 2G email sent, but that above I would guess is easily doable.
thanks
- The topic ‘Move file rather than delete/ulink’ is closed to new replies.