Legacy Forums => General Discussion (Legacy) => Topic started by: Mark Murden on December 18, 2002, 02:51:04 PM
Title: File Upload directory
Post by: Mark Murden on December 18, 2002, 02:51:04 PM
Can anyone help me with altering the temporary file upload directory on a SME 5.1 server.
I am uploading files from an HTML form:
(File:
and the $file variable takes becomes something like this:
/tmp/php9NVELE
I can copy and use these files as require after modifying the open_basedir restrictions to /.
As you can understand I would rather leave the open_basedir restrictions in place on a higher level directory (say /home/e-smith/files/ibays/) and get the temporary uploaded files here before copying.
I have looked into solutions modifying php.ini with no effect (as expected) but cannot find any e-smith templates or the like relating to the upload directory.
Any help would be much appreciated
Thanks
Title: Re: File Upload directory
Post by: Nathan Fowler on December 18, 2002, 10:40:15 PM
Why not take advantage of the move_uploaded_file() command, available in PHP?
See http://www.php.net for more information on handling the upload of files. For security reasons, I also recommend using is_uploaded_file()
Title: Re: File Upload directory
Post by: Nathan Fowler on December 18, 2002, 10:40:15 PM
Why not take advantage of the move_uploaded_file() command, available in PHP?
See http://www.php.net for more information on handling the upload of files. For security reasons, I also recommend using is_uploaded_file()