Active
Project:
FileRequest
Version:
master
Component:
Code
Priority:
Critical
Category:
Feature request
Assigned:
Reporter:
Created:
2 Sep 2007 at 15:45 UTC
Updated:
20 May 2008 at 03:13 UTC
Recently we needed this module functionality for one of our projects, so I had to convert it to current Drupal version.
Added new feature: do the same job for empty referrer if needed, controlled by switch.
Also did some cleanup job along with conversion. Module still has some questionable code, but no doubt is fully operational.
Unfortunately drupal.org does not allow tar.gz attachments, so anyone interested may get patched module here: http://www.torlin.com/files/filerequest-5.x-1.x-dev.tar.gz
Comments
Comment #1
niteman commentedIs this module maintaned?
I think file transfer resume thru private metod is a must have.
Comment #2
niteman commentedA little bug is that anonimous users can download. I've achieved to workaroun this doing the following in filerequest.module _filerequest_download() function:
Add $filepath = implode('/', $args); affter $args = func_get_args(); without removing $config["filename"] = implode('/', $args);
Comment foreach line and the }
Change $headers = module_invoke_all($module, 'file_download', $_GET['file']); to $headers = module_invoke_all('file_download', $filepath);
Final function code looks as follows:
Every change is marked with NITEMAN word ;)
Comment #3
darren ohThis should be fixed in Drupal core. We could use a review of issue 91934 to help get file transfer resume support for private downloads in core.