Beküldő: szenti. Beküldés időpontja: 2009, július 4 - 12:31du.
A Drupal 6-os verziója bizonyos server konfigurációk esetén nem megfelelő jogosultságot ad a feltöltött file-oknak, így azokat anonymus user nem tekintheti meg. Erre a megoldás: includes/file.inc 579. sorába
function file_save_upload() {
/*Patch uj sorkent kell beszurni az alabbit */
@chmod($file->filepath,0644);
// If we made it this far it's safe to record this file in the database.
$file->uid = $user->uid;
$file->status = FILE_STATUS_TEMPORARY;
$file->timestamp = time();
drupal_write_record('files', $file);
}
A Drupal 6-os verziója
A Drupal 6-os verziója bizonyos server konfigurációk esetén nem megfelelő jogosultságot ad a feltöltött file-oknak, így azokat anonymus user nem tekintheti meg. Erre a megoldás: includes/file.inc 579. sorába
function file_save_upload() { /*Patch uj sorkent kell beszurni az alabbit */ @chmod($file->filepath,0644); // If we made it this far it's safe to record this file in the database. $file->uid = $user->uid; $file->status = FILE_STATUS_TEMPORARY; $file->timestamp = time(); drupal_write_record('files', $file); }