It is possible to make support for comment upload module?

CommentFileSizeAuthor
#4 uploadpath-comment-1.patch7.87 KBDiversiCon

Comments

darktygur-1’s picture

Category: support » feature

If I submit a patch for this, will it actually get committed?

Olli1984’s picture

i need this feature too.
I can´t confiure the path for comment uploads.

thx 4 any help.

lg

no2e’s picture

You could use http://drupal.org/project/filefield_paths - or am I wrong?

DiversiCon’s picture

StatusFileSize
new7.87 KB

I had an overriding need to control the location of comment attachments so I took some time to modify the uploadpath module to suit my needs. Attached is a patch that supports comment uploads to the degree that I required. There are no new admin options, it simply uses the path information for the node to which the comment is related. As this is my first code contribution to drupal.org, I welcome all comments and suggestions. I will be happy to tweak on it as needed.

I have been running the patched version on a fairly active Open Atrium beta8 site and a Drupal 6.19 without any issues for about a month.

Take Care

pumpkinkid’s picture

I too need this support... I will look at the patch provided within the next few days.

pumpkinkid’s picture

I actually just found that the filefield_paths module supports this function out of the box... Not really sure what the difference between the two is.... other than one works....

strauch’s picture

this patch doesn't work (error: Hunk #1 FAILED at 29.) any idea?