? .DS_Store ? .cache ? .project ? .settings ? empty ? file.inc_.664.patch ? logs ? modules/.DS_Store ? modules/im ? modules/imagemagick ? sites/all/modules ? sites/default/files ? sites/default/settings.php Index: includes/file.inc =================================================================== RCS file: /cvs/drupal/drupal/includes/file.inc,v retrieving revision 1.123 diff -u -p -r1.123 file.inc --- includes/file.inc 14 Apr 2008 17:48:33 -0000 1.123 +++ includes/file.inc 16 Apr 2008 05:03:43 -0000 @@ -581,6 +581,11 @@ function file_save_upload($source, $vali $file->timestamp = time(); drupal_write_record('files', $file); + // Give everyone read access so that FTP'd users or non-webserver users + // can see/read these files, and give group write permissions so group + // members can alter files uploaded by the webserver. + @chmod($file->filepath, 0664); + // Add file to the cache. $upload_cache[$source] = $file; return $file;