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

dopry’s picture

Assigned: Unassigned » dopry
Status: Active » Closed (won't fix)

PHP'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.

krichlin’s picture

So that's it then, no uploads with Safe Mode? Is there no way to use a directory other than the root /tmp?