Closed (fixed)
Project:
Upload element
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2009 at 19:29 UTC
Updated:
21 Jan 2009 at 10:40 UTC
It's really easy to support this...
Change lines 411 - 412:
$src = 'upload_element/'. $element['#build_id'] .'/'. $element['#name'] .'/'. $fid;
return '<div class="upload-element-preview"><img src="'. base_path() . $src .'" alt="'. t('Image preview') .'" /></div>';
To this:
$src = url('upload_element/'. $element['#build_id'] .'/'. $element['#name'] .'/'. $fid);
return '<div class="upload-element-preview"><img src="'. $src .'" alt="'. t('Image preview') .'" /></div>';
(Sorry, can't roll this as a patch atm.)
Comments
Comment #1
alan d. commentedThanks Ryan. I've committed it to CVS.