Hi,

With all other cck fields I am using, when I browse for a file to upload, then click 'upload', the filename that has been uploaded appears above the 'browse' field, along with a small icon.

With imagefield, this is'nt happening (it does change 'New Upload:' to 'Replace:' though, so i know that its working.
I have the same problem on two sites, on different servers. Is anyone else having this problem?

Thank you
Rich

CommentFileSizeAuthor
imagefield_problem.jpg28.51 KBrich_lang

Comments

tanc’s picture

Yes, I noticed this issue too. In my case the server I was using didn't have GD installed and the temporary directory as specified in admin/settings/file-system was incorrect which was stopping thumbnails being generated properly. I don't think imagefield displays a filename, instead it shows a thumbnail. Once I fixed GD this problem was resolved.

quicksketch’s picture

I think I understand the issue, but the image provided doesn't seem to match what you've described. Could you provide more description of your image?

quicksketch’s picture

The problem referenced by your screenshot (as far as I can tell) looks like it's pointing at the duplicate labels within an ImageField. I believe this is a FileField problem, which is fixed in #387194: FileField UI Refactoring.

jcruz’s picture

I believe I am having the same problem rich_lang was having, ie. after uploading an image the thumbnail does not display on the node edit page.

This seems to only occur when I set the File System to Private.

Example:

After uploading an image I can view it at:
http://example.com/system/files/test.jpg

However the URL that the node edit page uses for the thumbnail does not work:
http://example.com/system/files/test.jpg.thumb.jpg

quicksketch’s picture

However the URL that the node edit page uses for the thumbnail does not work:
http://example.com/system/files/test.jpg.thumb.jpg

Thanks jcruz, that's helpful information. Looks like ImageField might not be generating the preview paths correctly. If you directly visit http://example.com/system/files/test.thumb.jpg does it work?

jcruz’s picture

If you directly visit http://example.com/system/files/test.thumb.jpg does it work?

No, I get a Page not Found message. Thanks for looking into this, and for maintaining the module!

quicksketch’s picture

Status: Active » Closed (works as designed)

I'm fixing the thumbnail problem as part of #397578: Uncouple ImageField from FileField Custom Hooks, since it requires an update.php run. I don't think it's directly related to this problem, so let's continue there instead.

With all other cck fields I am using, when I browse for a file to upload, then click 'upload', the filename that has been uploaded appears above the 'browse' field, along with a small icon.

I now realize what rich_lang was trying to say, he's describe the behavior of FileField, which shows an icon and file information instead of a thumbnail. rich_lang, this is by design and it is how ImageField differs from FileField. ImageField shows a thumbnail of the image, while FileField shows file information.