We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Downloader Plugin, Member-Only File Download

Development and Programming

Benjamin David's avatar
Benjamin David
77 posts
16 years ago
Benjamin David's avatar Benjamin David

I wanted to share with you a new plugin for EE 2 called Downloader. It adds a new tag in ExpressionEngine that will start the download automatically from a file URL you passed in the parameters. The real file URL is hidden to the user.

You can also restrict file download by member groups. The tag has a parameter for this too.

This is a first short driven by some specific client needs, but I’ve made it available on my website and I’m hoping some feedback so I can improve the plugin and add new features.

Downloader Plugin for ExpressionEngine 2.0

       
JmanPro's avatar
JmanPro
49 posts
about 16 years ago
JmanPro's avatar JmanPro

Thanks for sharing this plugin! Been looking for something like this. In your plan to add features, would you consider adding the ability to let it keep track of # of downloads? I make a new channel entry for each file, and it would be awesome to have it keep track.

       
Benjamin David's avatar
Benjamin David
77 posts
about 16 years ago
Benjamin David's avatar Benjamin David
Thanks for sharing this plugin! Been looking for something like this. In your plan to add features, would you consider adding the ability to let it keep track of # of downloads? I make a new channel entry for each file, and it would be awesome to have it keep track.

Hi Jerman and thanks for your feedback ! Can’t tell you much about the future version of the plugin but the only thing I can say at the moment is that v1 won’t last very long 😉

Cheers

       
qaswa's avatar
qaswa
9 posts
15 years ago
qaswa's avatar qaswa

Thanks for the plugin. It’s working perfectly for most of the links and I get an error for some. I’m using it to offer my music and the files are fairly large (most are ~100mb) - not sure if this is causing an issue. Here’s the error: Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 82575360 bytes) in ~/expressionengine/third_party/downloader/pi.downloader.php on line 79

Thanks in advance for any insight.

       
Benjamin David's avatar
Benjamin David
77 posts
15 years ago
Benjamin David's avatar Benjamin David
Thanks for the plugin. It’s working perfectly for most of the links and I get an error for some. I’m using it to offer my music and the files are fairly large (most are ~100mb) - not sure if this is causing an issue. Here’s the error: Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 82575360 bytes) in ~/expressionengine/third_party/downloader/pi.downloader.php on line 79 Thanks in advance for any insight.

Hi qaswa, in order to protect the file, the plugin actually reads the content before sending it to the user and that’s why you’re getting errors with large files as it uses a lot of memory. You’re gonna have to increase the memory limit to make it work. This can be done in a htaccess or with a single php line such as :

ini_set("memory_limit","16M");

Hope this helps !

       
qaswa's avatar
qaswa
9 posts
15 years ago
qaswa's avatar qaswa

That did the trick. Thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.