Closed (fixed)
Project:
File (Field) Paths
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 May 2009 at 12:53 UTC
Updated:
11 May 2010 at 04:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
decipheredHi introfini,
Amazing timing for this request, I had only just considered doing this myself a few days ago.
Have started work on it and should be available in a dev build in the next few days with any luck.
Cheers,
Deciphered.
Comment #2
introfini commentedGreat news!
introfini
Comment #3
decipheredAttached is a zip containing a partially tested development build of FileField Paths with support for the Comment Upload module.
Apologies for the use of a zip, but my dev environment is a little messed up at the minute and I couldn't apply my own patches. Will likely upload a patch sometime in the future.
Any testing you can do would be greatly appreciated.
Cheers,
Deciphered.
Comment #4
introfini commentedI'm on it :-)
Comment #5
introfini commentedI'm getting this error:
I will continue testing the module.
introfini
Comment #6
decipheredHey,
Thanks for the testing, it really helps.
Attached is a new zipped version that fixes the issue you had, or at least it should.
One thing to note, retroactive updates have not been implemented for the Comment Upload module yet.
Cheers,
Deciphered.
Comment #7
introfini commentedIt works now, but with a strange issue. If I choose the file without clicking the attach button but instead submit the comment form directly the file is attached and the path correctly changed. The other way the file isn't attached.
I'm using comment upload alpha 2, there is a bug in the higher versions that prevents more than one file to get uploaded...
Thanks.
introfini
Comment #8
decipheredHi,
When you say that when you hit the attach button the filepath is incorrect, are you talking about before you actually submit the node? Because if that is the case then that is the expected behaviour.
FileField Paths uploads the file to a temporary directory (in this case the files path) and then once the node (or comment) is saved it relocates the file.
This is due to the fact that the tokens can not be processed as the node tokens are not populated until the node has been created. Technically the Comment Upload integration doesn't need to work this way as the node tokens are populated, but it's the only way it can really work inside the FileField Paths module.
As for the alleged issue with Comment Upload not being able to handle multiple files, I'm using the latest development build, which is presumably the same as Alpha-4, and it handles multiple files without any issues.
Cheers,
Deciphered.
Comment #9
decipheredCommitted to DRUPAL-6--1 - http://drupal.org/cvs?commit=214958.
To be backported to DRUPAL-5.
Cheers,
Deciphered.
Comment #10
decipheredBackported to DRUPAL-5.