I'm trying to run multiple sites off of the one codebase but am having problems uploading images to the correct directory. For each site I specify a different directory under "files/images" for the default image path at admin -> settings -> image. But regardless of what I put for the default image path, images are always uploaded to "files/images".

Comments

singularo’s picture

Yep, I'm seeing that here as well. The directory is created, but the images are not placed into it.

Its a typo at line 599 in the image.module. The line reads:

$output = variable_get('image_path', 'images') .'/';

and it should read:

$output = variable_get('image_default_path', 'images') .'/';

Making this change allowed it to upload where its supposed to.

walkah’s picture

committed, thanks :)

Anonymous’s picture