Umask

TBarregren - December 9, 2008 - 23:41

On PHP previous to version 5.2.5, move_uploaded_file() doesn't respect the umask if the file is just moved (renamed). For details, see PHP bug #42291.

This module simply change the mode bits (chmod) to ~umask & 0666 for a file just uploaded with CCK module FileField. The module doesn't (yet) support core's Upload module.

This module is developed by Thomas Barregren at NodeOne.

The development of this module has been sponsored by:

Downloads

Recommended releases

Version Downloads Date Links
6.x-1.1 Download (6.63 KB) 2008-Dec-10 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.