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.
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
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.
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 !
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.