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.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | file-upload-error.jpg | 36.62 KB | socialnicheguru |
Comments
Comment #1
arhak commentedif I don't come back to you in a few days, please, send me a mail as a reminder
Comment #2
arhak commentedI 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
Comment #3
J3 commentedI think imagefield doesn't care. And I never reproduce #851118-5.
Comment #4
socialnicheguru commentedI 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.
Comment #5
anybodyconfirm