[FX.php List] [OFF] Windows Temp permissions for uploading

Joel Shapiro mail at jsfmp.com
Tue Nov 18 16:46:52 MST 2014

Hi again

Just reporting that manually adding the IUSR account to the Temp directory and giving it Modify access fixed the problem for me.

Thanks again,

On Nov 17, 2014, at 4:56 PM, Joel Shapiro <mail at jsfmp.com> wrote:

> Hi all
> I've got a situation.  I'm uploading files via PHP to a Windows Server 2008 (IIS7).  The file is successfully uploading to C:\Windows\Temp and then successfully moving to an "uploads/" directory inside the site.  However, there's some kind of permissions problem on the file inside /uploads/.
> If I point my browser to the uploaded file ("xyz.com/uploads/myFile.docx"), I get a "401 - Unauthorized: Access is denied due to invalid credentials." error.
> If I manually move the same myFile.docx into the /uploads/ folder (via my Mac's Finder, not uploaded via PHP), then pointing to the file's URL (as above) successfully downloads the file.
> This post:
> http://www.howyoudo.info/index.php/how-to-fix-windows-server-upload-file-inherit-permissions-error/
> *seems* like it should address this issue: "... The problem is when Windows copies that file, it keeps the temporary directory’s permissions and doesn’t inherit your web directory’s permissions."  But setting most of the existing Windows accounts/objects in Windows\Temp to Full Control doesn't fix the problem.
> FWIW: This works fine on my Mac dev server.
> Does anybody have any thoughts/suggestions?  Is there a specific account/object in C:\Windows\Temp that should be set a specific way?
> TIA,
> -Joel
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list

More information about the FX.php_List mailing list