Closed (won't fix)
Project:
Drupal core
Version:
4.7.0-beta4
Component:
upload.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jan 2006 at 08:06 UTC
Updated:
16 Feb 2006 at 00:41 UTC
File Upload module in Drupal 4.7.0-beta4 is not compatible with safe_mode On, unlike other modules (flexinode_image) which are compatible
Comments
Comment #1
dopry commentedPHP's complaint is:
warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 1038 is not allowed to access files/tmp/tmp_ACyM9f owned by uid 33 in /home/dopry/public_html/drupal-4.7.0-beta4/includes/file.inc on line 155.
I'm not sure how to address this issue. Users will have to set proper file ownership to make this work. Something about index.php being owned by the same user as the web server makes me cringe.... but I cannot find a work around after an hour of googling... Setting to won't fix.
Users restricted by safe_mode will have to give up on uploads. This is true of mambo and wordpress as far as I can tell.
Comment #2
krichlin commentedSo that's it then, no uploads with Safe Mode? Is there no way to use a directory other than the root /tmp?