Posted by linksunten on March 16, 2009 at 11:43pm
| Project: | Upload path |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
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
| Attachment | Size |
|---|---|
| uploadpath.linksunten.09_03_17.tar_.gz | 9.19 KB |
Comments
#1
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
Please supply this update as a patch against current 6.x-1.x-dev version of uploadpath for testing.
thanks,
DT
#3
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.
#4
Sorry, we forgot to update the status.
#5
Was this ever applied?