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.

AttachmentSize
diff.txt302 bytes

#1

abautu - January 14, 2008 - 12:38

I forgot a slash. Here it is.

AttachmentSize
diff.txt306 bytes

#2

drewish - February 4, 2008 - 00:21

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

drewish - February 4, 2008 - 00:22
Version:5.x-1.6» 5.x-2.x-dev
Status:patch (code needs review)» patch (code needs work)
 
 

Drupal is a registered trademark of Dries Buytaert.