Difficulties in uploading have been observed in some fresh installation, some of them where using php safe mode.
Then the problem is present, it is impossible to upload a file.
A patch has been proposed and has been reported to solve the issue.
http://drupal.org/node/1099160
Should this patch been comited to core?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | d8_drupal_realpath-1226786-8.patch | 811 bytes | Anonymous (not verified) |
| #2 | drupal_realpath-1226786-2.patch | 722 bytes | Anonymous (not verified) |
Comments
Comment #1
yaworsk commentedsubscribing.
Had this issue and updating line 1524 in file.inc resolved it. Not sure what detail is needed but I originally tried:
- 777 permissions on the tmp directory and sites/default/files directory, both unsuccessful.
- Turned off php safe mode in php.ini and was unsuccessful.
- created and defined a different temp directory via admin/config/media/file-system
- defined a temp directory in php.ini
I can also provide the modules installed if that helps...
pete
Comment #2
Anonymous (not verified) commentedThis patch was posted on the thread linked in the first issue and needs to be reviewed.
Comment #3
Anonymous (not verified) commentedComment #5
Anonymous (not verified) commentedComment #6
Anonymous (not verified) commentedComment #7
Anonymous (not verified) commented#2: drupal_realpath-1226786-2.patch queued for re-testing.
Comment #8
Anonymous (not verified) commentedPatch for 8.x-dev attached.
Comment #9
eric_a commentedThe patch from Akaoni in #109 of #1002048: Work around move_uploaded_file issues with safe_mode and open_basedir is similar to the one here. That issue has had reviews and is close to a definite RTBC status. It needs an issue summary and the patch itself needs a little polishing up. You're very welcome to join in over there!
Comment #10
Nnet commented#8: d8_drupal_realpath-1226786-8.patch queued for re-testing.
Comment #12
bensnyder commentedThis solved my problem in #1600610: Media allowed file size not used on file/add/upload. It took me more than 3 weeks of off and on debugging to find this core hack to temporarily fix the problem. I have many sites running on this VPS and this is the only D7 install that I have this problem. Weird!
Bumping to major.
Comment #13
bensnyder commentedComment #14
tim.plunkettNot sure that this qualifies as major.
Can someone post clear steps to reproduce in the issue summary?
Comment #15
jbrown commented#1002048: Work around move_uploaded_file issues with safe_mode and open_basedir
Comment #16
bensnyder commented@jbrown - not a duplicate since I am having this issue with a site and only the patch provided in #2 in *this issue* resolves the problem.
Comment #17
bensnyder commentedUpdated to latest Drupal core 7.x-dev today (which is the 7.15 code) and uploads started to fail again. After re-applying the fix in #2, I am able to upload files successfully again.
This is an anomaly to this one drupal site sitting on the VPS. I have about 20 other site on the VPS that all work fine without the patch.
Thoughts?
Comment #22
20th commented