Yesterday I had a terrible time with Drupal. It all started with some consern regarding overwriting files with the Drupal Upload Module later I found out that the upload renames the files even if we upload files with the same name. However they Have to be in diffrent pages.
Sombody on the Channel told me to try the Attachment module. Reading the docuementation it looked pretty straight forward. Install the fileManager Module. Install the Attachment Module and you are ready to go.
However it was not that easy. When I Installed the Attachment Module a UI to attach files did not appear in the pages. Only digging in deep into the documenation did I find that not only do you have to enable the module in access control but you will have to enable it in
Administrator – content – content types – xxx – configure and enable it to get it working.
That was not the end of my worries. When I attached my files the link that pointed to the files were all in a mess. I used to get a url http://mysite.com?p=http://mysite.com/files/active/0/xxx.yyy
Where it was supposed to be only
Looking deep into the forum I found that it was a bug and there was a patch written for it.
The problem has been discussed at Drupal Attachment Moduel URL problem
— attachment.module 2005-07-15 11:20:29.000000000 +0200
+++ attachment.module.new 2005-07-15 11:30:07.000000000 +0200
@@ -336,7 +336,7 @@
$attrib = empty($attachment[‘description’]) ? array() : array(‘title’ => $attachment[‘description’]);
– $row[‘data’] = l($text, module_invoke(‘filemanager’, ‘url’, $attachment[‘fid’]), $attrib);
+ $row[‘data’] = module_invoke(‘filemanager’, ‘l’, $text, $attachment[‘fid’], TRUE, $attrib, TRUE);
$row[‘class’] = ‘filename’;