Hello

When I upload files as attachments to node, Drupal only shows attachments' file name and size. I want to add a description/title to those files. Is here any module or any other way to do this?

Comments

cog.rusty’s picture

One way is to use the image module + img_assist module. An additional hack for improvement of this method is discussed in http://drupal.org/node/265315 This method, using the image module, is more suitable when you want to have the additional option to manage your individual images through Drupal and to be able to categorize them in various ways.

Another method is to use the CCK module + imagefield module, and to use the imagefield's title for the caption (with some theming to make it appear under the image). This is easier for just dropping images into posts.

dml’s picture

I've got the same problem, I need a title + description + size for each attached file. I'm a complete beginner in Drupal, and I'd appreciate it if somebody could point me in the right direction.

* I'm in Drupal 6. If any other version information is relevant, let me know and I'll post it.
* It sounds like the Attachment module (drupal.org/project/attachment) is what I need, but this isn't yet available for D6.
* I tried the recommended workaround with the Image module, but I can't see any way of using it to upload file types other than images.
* I tried using CCK and adding a FileField allowing unlimited attachments. That almost does what I need it to do. The main problem is that the description field for an uploaded file isn't being saved (it's not being saved anywhere in the database, anyway, and it's not displaying). Where should I start if I want to debug this?

Thanks.

cog.rusty’s picture

The attachment module seems dead to me (or in a coma). It's been a long time since any work has been done, and it doesn't have any stable releases to begin with.

Maybe you could use filefield's field title for metadata. (I haven't done that.)

Other options for non-image files are:
http://drupal.org/project/filebrowser (a very simple one -- supports descript.ion files)
http://drupal.org/project/webfm (it says it supports metadata)

dml’s picture

Thanks for confirming the status of the attachment module. It kinda looked like that was the case, but newcomers to Drupal are encouraged so often to use the existing module system that I didn't want to exclude it from consideration too hastily. It seems like such useful functionality that I'm surprised the module hasn't either been kept current or at least explicitly closed with a note about what superseded it.

I'm not sure what you mean by the field title. The way I've managed to set it up, each filefield has a file upload field and a description field, which as I said doesn't seem to save the information anywhere. Where should I be looking for the field title?

I'll have a go at the filebrowser and webfm options and report on my progress with them. Thanks for the recommendations: even if they turn out not to be exactly suited to what I need, it gives me something specific to try out rather than just poking around the admin console.

dml’s picture

I've finally tracked down the problem with filefield - http://drupal.org/node/310126 . The entered description doesn't display by default. I set things up to display the description and all is well.