Welcome Guest, Not a member yet? Register   Sign In
Advanced File Downloading Library
#1

[eluser]mglinski[/eluser]
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:
Code:
$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
#2

[eluser]johnwbaxter[/eluser]
Hey, that's pretty cool! Thanks, for this, i've got a use for this right away. Have you added something into the ci wiki yet?
#3

[eluser]mglinski[/eluser]
Download it again, there were file errors i found after uploading it.
I have not, as the wiki is not very organized or helpful for finding ignited code. I am working on a code repository site for the community and this will be on there soon.
-Matt
#4

[eluser]BobbyB[/eluser]
Just what I was looking for!
Thanks man.
Keep it up!
#5

[eluser]Unknown[/eluser]
Hi there, XtraFile,

Where will the downloaded file be located after the download?
I can see that you only give a filename, how about the path to the location of the file in the desktop (i.e C:\tmp\) ?
Or is there a default location where the downloaded files be placed?

Thank you and regards,
Reyal




Theme © iAndrew 2016 - Forum software by © MyBB