Here is my second contribution to Ci, a fully featured, HTTP 1.1 Compliant, file download library. The library is fully (code)documented and uses the default Ci naming system( class MY_*). I have tested this library against my other file downloading library and found it to be just as fast. I am working on a documentation file in the format of the official CI docs but for now the code and comments are self explanatory.
Setup:
Drop this file in your system/application/libraries/ folder, thats it!
Usage:
$this->load->library('filedownload');// Load the download library
$config = array(
'file' => 'store/orly.exe',// local file to store, relative folder from the root index.php file location of CI
'resume' => true,// Allow download resume support
'filename' => 'This_is_the_new_filename.exe',// New filename after downloaded to the clients computer
'speed' => 200, // file download speed limit, in kbytes
);
$this->filedownload->send_download($config);Planed features:
-> Data Download Support
-> Further Stability, Security
Changelog:
v1 - Official public release
Download:
http://rapidshare.com/files/90741744/Filedownload.php (no wait 😊 )
Please leave comments in this thread, i will update the main post when things change.
EDIT:1
Had some CI things wrong, everything is now updated and correct.
-Matt