get a file by his name

Permalink 1 user found helpful
Hello,

I would like to access a pdf file which I have created inside the "files" folder. I did not upload this file via the dashboard. What is the best way to get that file programmatically?

Here is what I tried : $file = "/files/static/report.pdf";

Thanks for your help.

 
sev replied on at Permalink Reply
it works, right path is /application/files/filename"

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.