Problem:
In image_fupload/includes/images.previewlist.inc, line 142 code is

 $content = '<img src="' .base_path() . file_create_path($image). '" wid......

This will break the EDIT CAPTIONS page on Drupal sites once the images are uploaded IF the site has "Private" filesystem enabled and file storage path is outside of the web-accessible document root. file_create_path() will return the real filesystem path, not the relative URL path and the images will not be displayed in the Edit Captions page.

Solution: use file_create_url() instead as it will work for both "Private" and standard configurations...

  $content = '<img src="'. file_create_url($image). '" width="' .$image_info['wid......

I have made this modification on my Drupal 6.4 site and it seems to be working flawlessly. Please review and consider for sync to next version.

Great work, BTW & I hope this helps! :-)

Comments

grandcat’s picture

Version: 6.x-1.1-rc1 » 6.x-3.x-dev
Status: Needs review » Closed (duplicate)

Thank you for your bug report, but this issue has already been fixed in 3.x beta version. A new release candidate will come soon ;)

Duplicate of #314531: Preview not working with private file system (patch included)

Zakias’s picture

Woops... totally missed that comment when looking through - shouts out to ktatruc :-)