Image module uses its own temp path
abautu - January 11, 2008 - 19:08
| Project: | Image |
| Version: | 5.x-2.x-dev |
| Component: | image.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | abautu |
| Status: | patch (code needs work) |
Description
As I see in image.module, the Image modules defines its temp folder inside the image folder.
Personally I would prefer that the temp folder is the one defined in Drupal's settings (returned by file_directory_temp). This way, I can make the image folder available to the public, while I put the temp path outside the htdocs folder (an certainly outside the images folder).
I've attached a diff with the three changes I've made.
Andrei.
| Attachment | Size |
|---|---|
| diff.txt | 302 bytes |

#1
I forgot a slash. Here it is.
#2
definitely won't be changed in the 1.x branch. 2.x is where the new features are going. but i don't think it'll work to use the core temp directory since we need to serve files out of it for previews.
#3