I've come across the following situation where I'm using imagefield to upload images, and filefield paths to direct the images to a specific directory, for example, /sites/default/files/photos/albumX
When the image is first uploaded the files (original and thumbnail) goto
/sites/default/files/photos/[title]
which is what I expect. However, when I save the node, only the original file is moved to /sites/default/files/photos/albumX. The thumbnail remains in /sites/default/files/photos/[title]. does this module actually move the files then, or is something else responsible for that? I'm pretty sure this was working before, and I would like to track down what is causing the issue :)
Comments
Comment #1
dan.crouthamel CreditAttribution: dan.crouthamel commentedMore info. If I edit the node, the imagefield module is expecting the thumbnail to be in /sites/default/files/photos/albumX (view source on page shows that), but it's not there and so I don't see any image thumbnail when editing the node.
Comment #2
Deciphered CreditAttribution: Deciphered commentedYes, FileField Paths should be moving the thumbnail as well. Will look into it.
Comment #3
dan.crouthamel CreditAttribution: dan.crouthamel commentedThe following seems to be the problem
$file['module'] is returning 'filefield' ... I've implemented a short term hack for now :)
Comment #4
dan.crouthamel CreditAttribution: dan.crouthamel commentedUpdate - This may be due to the fact that I'm setting the field type to file, instead of image, when creating the CCK field. I raised this question in the imagefield project because it seems like you can build your CCK imagefield either way and looks to work the same, but I could be mistaken about that :)
#400028: Select a field type - Image or File
Comment #5
Deciphered CreditAttribution: Deciphered commentedThis is now a bigger issue as the latest version of ImageField removed the 'Image' type completely.
Will by fixed ASAP.
Comment #6
Deciphered CreditAttribution: Deciphered commentedFixed and Committed to DRUPAL-6--1.