The file_url:

'file_url' => url($file['filepath']),

Seems to get the absolute file reference: http://d6.drupal.org/var/www/d6.drupal.org/htdocs/scripts/files/issues/pass_2.patch

CommentFileSizeAuthor
#3 456980-file-url.patch1.23 KBboombatower

Comments

boombatower’s picture

Interestingly the following generates a proper link on d6.d.o right now.

l($file['filename'], $file['filepath']);
alex_b’s picture

Use file_create_url() (if in files directory) or $GLOBALS['base_url'] instead of url(). Using url() on a file will break when clean URL's is not enabled.

boombatower’s picture

Assigned: Unassigned » boombatower
Status: Active » Needs review
StatusFileSize
new1.23 KB
boombatower’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

boombatower’s picture

Status: Closed (fixed) » Active

Seems to still occur.

boombatower’s picture

Status: Active » Closed (fixed)

Nevermind issue on PIFR display side. YES!