0

If given a private file with a uri of private://Screenshot from 2015-12-07 15-52-42_0.png. How might I use l() to properly render the link?

enter image description here

When rendered as follows I see https://server/drupal-private-file-system/Screenshot%20from%202015-12-07%2015-52-42_0.png instead of system/.... in the URL.

1 Answer 1

1

The function file_create_url() is what I was after. I'm able to find what I was after with that.

dpm(file_create_url($file_obj['uri']));

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.