Login Retreive lost passwordRegister
Search

Forum Index / General / UploadField problem with FH3-v1.2.2

[ This topic is solved ]

  Rick den Haan 25 February 08 / 10:28  
I recently upgraded FormHandler on one site to the new 1.2.2 version, and am having problems with the UploadField.

The FH_DEFAULT_CHMOD is set to 0777, and is being used in the UploadField class, but files uploaded to the server end up with a 0600 chmod.

Since I'm letting users upload their own images, this effectively means their images aren't displayed, and a direct request gives a 403 error.

Is anyone else experiencing this problem? For now, I am manually chmodding the uploads in the onCorrect-function, but this is an extra step that should not be necessary.

  Rick den Haan 25 February 08 / 11:00  
Hmm... found the problem, I think.

It appears PHP is not allowed to CHMOD the files. That is, removing the @ from the chmod-command, gives me an "Operation not permitted" error.

New workaround: using ftp_chmod() on every upload...

  Top


powered by PHP-GLOBE   © 2004 - 2008 FormHandler. All rights reserved.   -   Open source license