private download method + anonymisation of file names

linksunten - March 16, 2009 - 23:43
Project:Upload path
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:needs review
Description

We extended uploadpath to work together with the private download method and fixed some bugs. We also implemented the possibility to anonymize the filenames. Shall we provide a patch or is our code too far away from the original code?

We use uploadpath together with upload_media (http://drupal.org/node/360123#comment-1364112)
for Indymedia linksunten:
English: http://linksunten.indymedia.org/en/node/770
German: http://linksunten.indymedia.org/de/node/438

AttachmentSize
uploadpath.linksunten.09_03_17.tar_.gz9.19 KB

#1

VM - March 16, 2009 - 23:48

This should be submitted as a patch so that it can be looked over and applied to a sandbox and if ok, submitted to CVS

#2

davidwhthomas - March 17, 2009 - 08:05
Status:active» postponed (maintainer needs more info)

Please supply this update as a patch against current 6.x-1.x-dev version of uploadpath for testing.

thanks,

DT

#3

linksunten - March 17, 2009 - 12:34

A patch is attached.

I must admit, I don't remember why we deleted

- if(is_object($file)){
- $file = (array)$file; // if object then type cast as array
- }

But I know why we did

- if ($file['new'] && !$file['remove']){
+ if (!$file['remove']) {

We are using upload_media, so we want to convert all attachments to nodes and reattach them through a cck node reference field.

AttachmentSize
uploadpath.module.anon_.patch 5.23 KB

#4

linksunten - March 20, 2009 - 21:25
Status:postponed (maintainer needs more info)» needs review

Sorry, we forgot to update the status.

 
 

Drupal is a registered trademark of Dries Buytaert.