Drupal 5.2
imagefield 5.x-1.1
cck-5.x-1.6-1
tmp = chmod 777
user_files = chmod 777
private file download method
When I upload an image, the thumbnail does not show until I have submitted and gone back in to edit the node.
Step one
After I have selected and clicked upload, a missing image icon appears instead of the image. It has the following path
http://www.mysite.co.uk/system/files/system/files/susana.jpg (at this point I can access the image only if I go to http://www.mysite.co.uk/system/files/susana.jpg )
Step two
After I click submit and view the node the image it is still not visible
Step three
Once I click edit, I can see the thumbnail. The path of the image is now
http://www.mysite.co.uk/system/files/susana.jpg
This is a problem because my users will be using these fields and they will be confused by thumbnails and images not appearing.
Thank you in advance for any help.
Comments
Comment #1
edhel commentedHow to fix: open imagefield.module file, find theme_imagefield_image function and change line 640:
$url = file_create_url($path);
to:
$url = url($path);
It works with both public and private method for me.
Comment #2
darren ohThat solution will not work unless clean URLs are enabled or the download method is private.
Comment #3
edhel commentedThis code works on my site with clean URLs & private method.
Comment #4
darren ohMy point was that the code will not work without clean URLs if the download method is public.
Comment #5
dnbsecrets commentedi have the same problem and didnt find any solutions yet
Comment #6
dnbsecrets commentedthere seems a bug with gzip output compression & firefox.
when u output gzipped compressed binary data to firefox.
so that's actually not a bug of drupal or imagefield.
i have the same problems with imagecache also
that outputs also images with php.
Comment #7
dnbsecrets commentedso i'm changing the status
Comment #8
dnbsecrets commentedoops, reposting
Comment #9
baja_tz commentedNot fixed so changing status.
See http://drupal.org/node/155726#comment-635896
Comment #10
darren ohDuplicate of issue 130701.