Can reproduce in a clean installed Drupal (6.19) site.

Steps:
1. Create a new database "test"
2. Run install.php to install it (47 tables in "test" after install)
3. Enable modules:
Administration menu 6.x-1.6
Content 6.x-2.8
FileField 6.x-3.7
Comment driven 6.x-1.x-dev
Driven CCK properties 6.x-1.x-dev
FileField Paths 6.x-1.4
4. Add a file field (to type Story) and enable it in comment driven
5. Set filefield path to [yyyy]/[mm]/[author-uid] (default settings for others)
6. Create a Story, comment to upload attachment

Results:
1. The URL is not correct in the comment (http://mysite/sites/mysite/files/myfile.ext )
2. but correct in the node (http://mysite/sites/mysite/files/2010/10/1/myfile.ext ).

I read compatibility with filefield_paths combined with imagefield and replied it, but cannot get an answer. So I did a clean testing & post a new issue.

CommentFileSizeAuthor
#4 file-upload-error.jpg36.62 KBsocialnicheguru

Comments

arhak’s picture

Title: Attachment URL is not Correct w/ CCK/FileField/Paths » compatibility with filefield_paths (without imagefield)

if I don't come back to you in a few days, please, send me a mail as a reminder

arhak’s picture

Status: Active » Postponed

I reproduced it

right now, I'm unclear about my previous test #851118-5: compatibility with filefield_paths combined with imagefield
but it seems that compatibility with filefield_paths is not achievable until a major rewrite of cdriven, to support changes happening during update hooks,
since currently only submission changes are supported

PS: for this setup, token module is also required, I used token-6.x-1.15

J3’s picture

I think imagefield doesn't care. And I never reproduce #851118-5.

socialnicheguru’s picture

Status: Postponed » Active
StatusFileSize
new36.62 KB

I am having this same issue with filefield, tokens, filefield_paths

I create a story content type
use filefield to upload an attachment. In this case it is a word document.
click enter
I can download the document just fine and the path is correct.

If I use comment driven to add a file to the comment (this file happens to be of the same name ie. I just updated the file I originally uploaded when I created the node)
1. in the comment, the link to the original file is no longer valid. It can't be downloaded. The original file is deleted from the server and thus not accessible
2. the attached file has "-1" added to it by the server
3. in the comment when you hover over the link, the file path is files/file-1.docx
4. nothing is at that location
5. When I view the files directory, the file is where it is supposed to be: files/filefield_paths/file-1.docx. There is no way for the user to get to it.

anybody’s picture

confirm