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

Comments

vm’s picture

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

davidwhthomas’s picture

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

linksunten’s picture

StatusFileSize
new5.23 KB

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.

linksunten’s picture

Status: Postponed (maintainer needs more info) » Needs review

Sorry, we forgot to update the status.

bkosborne’s picture

Was this ever applied?