In file_create_url() the last line states:
return url('system/files/'. $path, array('absolute' => TRUE));

Could anyone explain why the function should include the 'system/' part?

Thanks in advance.

Comments

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

See system.module line 198

The url needs that part so the right menu callback is triggered. This is part of the private download method .

Does that answer your question?

- Arie

edvanleeuwen’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Hi Arie,

Thanks for your reply. I guess this answers my question.

Best regards, Ed