Support for private download method in webfm_popup

tom.vda - September 29, 2009 - 14:26
Project:Web File Manager
Version:6.x-2.11
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

At this moment only the public download method is supported by webfm_popup when returning a normal download url instead of webfm id. The attached path adds support for the private download method as well by checking the chosen download method before composing the url.

I don't know if the 'system/files' settings should be hard coded or if it can be retrieved from somewhere? If this setting can be retrieved with an existing function, I should be modified in the patch.

Tom

AttachmentSize
webfm_popup.module.patch1.08 KB

#1

vallab444 - November 10, 2009 - 19:04

tom, thanks! I couldn't have changed my file download method. your patch saved me!

#2

tom.vda - November 12, 2009 - 08:29

Private download will also require the implementation of hook_file_download() in the webfm module. It seems I forgot to submit this patch last time, but I already added a quick implementation of hook_file_download() which is more or less a copy of webfm_send_file().
This code code be optimized by moving the duplicate code to separate functions.

AttachmentSize
webfm.module.patch 2.87 KB
 
 

Drupal is a registered trademark of Dries Buytaert.