This extension is a helper for file downloads with resume, download speed and stream options.
**Tested only on Apache with DownthemAll FireFox plugin.
Developed with Yii version 1.1.6
Download and extract the extension on your protected/extensions folder. The extension will be under a folder named 'helpers'.
The extension just have one static method and static property array that holds file extensions to be streamed. It use is quite straightforward:
NOTE: On the comments within the extension there is a DS reference that is a shortcut to DIRECTORY_SEPARATOR. Please, use as the following below:
// Import library ( assuming in protected.extensions.helpers) Yii::import('ext.helpers.EDownloadHelper'); // assumming I have a folder named docs under my webroot folder // and a file to be downloaded 'myhugefile.zip' EDownloadHelper::download(Yii::getPathOfAlias('webroot.docs').DIRECTORY_SEPARATOR.'myhugefile.zip');
Total 2 comments
Excelent Work!!
Antonio, no it is NOT quite straightforward to use! :] Please, provide more information. In my humble opinion, you missed installation part with usage - what you wrote about usage is actually an installation chapter, and for true usage you wrote nearly nothing! :]
Provide some examples on how use this extension on both, client side (browser with plugin) and server side (Yii code), please, please, please! :]
Leave a comment
Please login to leave your comment.