I just realized that my 4.7 installation of Drupal will not allow file attachments to forum replies, only the original forum post. Is there any way to allow file attachments on forum post comments?

Thanks

Comments

rszrama’s picture

Unfortunately, files are uploaded and attached to nodes. There's been a lot of discussion about comments being turned into nodes, but I think the consensus is that won't happen. I'm sure a module could be written that would alter comment form and display to allow file uploads, I just haven't heard of it being done.

----------------------
Current Drupal project: http://www.ubercart.org

zoon_unit’s picture

It seems a no brainer to have comments as nodes so they can have all the attributes of node types. Why would there even be a discussion about this? I realize that comments must have a field that registers parent-child relationships, but it seems like this would be a minor change/addition to the node table structure and might have additional benefits, since that extra field could be used for other purposes on non-comment nodes.

sepeck’s picture

Yes it would seem that way until you read the discussions on performance trade offs and necessary ground work to convert this over. See devel archives and issue threads for discussions. It may happen for v6 or it may not. If you have an interest in this happening then please follow up in the appropriate places.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

vph’s picture

The performance trade-off makes sense, but I don't see why technically it's a big issue. Aren't book pages already "comments" attaching to nodes?

sepeck’s picture

Nope. Book pages are nodes. It also has an outline function that allows you to attach any node type into the book outline.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

vph’s picture

Yes, that is the point. Maybe, I'm misunderstanding something here, but my understanding of what you said above is that making comments into nodes takes a lot of ground work. If that is what you mean, then I wonder why that would take lots of work. The reason is that Drupal already has a mechanism to attach nodes to other nodes in a similar way that comments are attached to nodes. In other words, if you throw away the comment module and stick the book module in, that would more or less do the same thing, in addition to the fact that comments would be nodes, and so can do to them whatever you can to nodes. So in terms of technicality, I don't think making comments nodes is difficult, because the mechanism is already there.

About the performance trade-offs, yes I think that may be a serious issue. In my experience, book nodes with many pages tend to be slow. So to fix this performance issue may require big chances in Drupal. But then, it may be a good thing, because such changes will be good things for the book module as well.

sepeck’s picture

Not quite that straight forward no. Comments serve different purposes and work differently.

As I said before, see the issue tracker and the devel list. There are live implementations of comments as nodes on a live site or two (not Drupal.org) so stuff is being learned about it. As this is a change (not a small one) a lot of code needs to be written and patches submitted and debated.

This would be for Drupal 6. So if you are interested in it, then research the history and the issue queue for it, test the existing suggestions and provide feedback. Now is the time to get involved in Drupal 6 if this is somethign you have a reason for. Drupal 5 is frozen so it will not happen for Drupal 5. Stuff in the forums after the fact tend to get lost so get involved early.

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain

-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide

tom_buytaert’s picture

rszrama’s picture

There you have it. = P

Christefano-oldaccount’s picture

Yes, use the comment upload module.

ragsman’s picture

I overlooked this module when searching for a solution. It's exactly what I'm looking for!

Thanks!

Ragsman

Xabi’s picture

Is there any option to get comment attachments for Drupal 5.x users? The development of the comment upload module seems to be stopped.

rszrama’s picture

Xabi, if you're just a little code savvy, you can follow along in a little tutorial I wrote to see how to upgrade it yourself. It's not a huge file, so you should be able to knock it out in not too long. Always best to check the issue tracker first to see if someone else is already on it. : )

http://ryan.grinhost.net/2006/tagadelic_drupal_5_0

heine’s picture

I've already updated comment_upload. Bit of final testing then I'll supply a patch.

Development of comment_upload has not been halted.

--
The Manual | Troubleshooting FAQ | Tips for posting | How to report a security issue.