note 48815 rejected from function.move-uploaded-file by cece

From: Date: Fri, 07 Jan 2005 19:58:12 +0000
Subject: note 48815 rejected from function.move-uploaded-file by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-82924@lists.php.net to get a copy of this message
Note Submitter: daniel at takeonemarketing dot com ---- I had an issue with permissions and move_uploaded_file on windows 2003 and IIS. What was happening is i would upload a file and then move it to the display directory, but when i went through my web browser to the image in that directory i would get a prompt for username/password. I learned that the file inherits its initial permissions from the temp upload directory, therefore the default internet account did not have permissions to the file. My fix to this was to edit the php.ini file and set a new location for the php upload directory and then alter the permissions on that directory to grant access to the file. Then when i move the file from the new temp directory to the display directory it loads fine. Does anyone know of any pitfalls of this method?

« previous php.notes (#82924) next »