Closed (cannot reproduce)
Project:
Drupal core
Version:
6.9
Component:
file system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
15 Oct 2008 at 22:34 UTC
Updated:
17 Oct 2010 at 14:38 UTC
in "private download" mode URLs arn't working.
return url('system/files/'. $path, array('absolute' => TRUE));
should be
return url('system/files/'. file_directory_path(). '/' . $path, array('absolute' => TRUE));
Comments
Comment #1
damien tournoud commentedThe original call *is* correct.
Could you describe the issue you are facing?
Comment #2
jlarky commentedhardly ) i am not good speaking in english.
1. I've attached file. and now it in sites/default/files/ directory
2. link is http://geo.phys.spbu.ru/~jlarky/drupal/?q=system/files/td_123.pdf - it's "Page not found" page
3. I've added file_directory_path(). '/' and link becomes into http://geo.phys.spbu.ru/~jlarky/drupal/?q=system/files/sites/default/fil... so it's would be.
Comment #3
jlarky commented6.9 has this bag too
Comment #4
jlarky commentedComment #5
mdupontMost probably it's a bug in your server configuration, as a lot of people are using private downloads without problem.