ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Advanced File Downloading Library

February 10, 2008 3:40pm

Subscribe [5]
  • #1 / Feb 10, 2008 3:40pm

    mglinski

    124 posts

    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

  • #2 / Feb 10, 2008 3:47pm

    johnwbaxter

    651 posts

    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 / Feb 10, 2008 3:50pm

    mglinski

    124 posts

    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 / Dec 09, 2008 9:02am

    BobbyB

    51 posts

    Just what I was looking for!
    Thanks man.
    Keep it up!

  • #5 / Jan 24, 2013 4:32am

    reyal

    1 posts

    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

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases