doesn't import to the path specified in field options

joachim - March 4, 2009 - 16:51
Project:Imagefield Import
Version:5.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:postponed (maintainer needs more info)
Description

This is because of the function _image_filename(), which is a straight copy from image module ;)
So this creates a new filename for the image, saving it in files/images, which is image module's default path.
The setting for the field is not being used.

This code will get the right path:

  $type_name = 'TYPE NAME';
  $field_name = 'field_FIELD NAME';
  $type = content_types($type_name);
  print_r($type['fields']['field_composer_image']['widget']['image_path']);

#1

vordude - March 6, 2009 - 01:01

You're absolutely right.

It all was taken straight from the original image_import.module to begin with. That bug (it's hard to even joke that it's a feature) is left behind.

would love to see a patch :-) it's on my todo list..

#2

vordude - March 6, 2009 - 01:01
Status:active» postponed (maintainer needs more info)

#3

messenger - March 30, 2009 - 20:10

any progress on this? I've got my cck imagefield upload path set to use the folder image/[user-raw].
When I allow users to import images into the imagefield from the ftp server import folder, their images are being place in the image folder, not the image/[user-raw], which I would much rather have them in.

 
 

Drupal is a registered trademark of Dries Buytaert.