Download & Extend

doesn't import to the path specified in field options

Project:Imagefield Import
Version:5.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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']);

Comments

#1

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

Status:active» postponed (maintainer needs more info)

#3

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.

#4

Status:postponed (maintainer needs more info)» fixed

This has been fixed in version 5.x-1.5. The module now uses the path from the imagefield, and support tokens if the token module is enabled.

#5

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here