Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
Download/display file
  • I have a CodeIgniter helper that I wrote that downloads/displays a file to a user when the file info is stored in a database table. It determines file path, file name, mimetype, size of file, etc. then sets a bunch of headers and does a readfile() to display the file. I've looked through the File class and see File::read() function, but I'm wondering if Fuel has any higher level functionality similar to my CI helper or should I just rewrite my helper?
  • There is no ready-made download class (as of today). You may wish to add this as a feature request at http://github.com/fuel/core/issues.
  • Thanks for the reply. I didn't see anything for downloading files but wanted to make sure. I also added a new feature request for a Download class.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion