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) |
Jump to:
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
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
#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.