Hi,
As mentioned in this post I have problem using filefield_path module and Comment driven. I use public file download and File path for filefield is set to:"rt/[nid]/priponka". On this picture you can see that link in comment is wrong and in link in post is ok.
Is this possible to fix?

Best regards,
gapa

Comments

arhak’s picture

Category: bug » support

if you enable comment_driven_inspect then hovering diff summary tables you'll see a "driven inspect" link
following it you'll retrieve:
- diff_values (dump): internals that provide valuable debug information
- and three rendered samples: frozen, live render, live comparison
-- "frozen" should be the one you're getting now
-- check whether "live render" and/or "live comparison" are right or wrong

Note: the "post" link was meant to point #739690-36: Compatibility with comment_upload

PS: this module hasn't claimed to be compatible with filefield_path (yet)
it would be desirable, of course, but until now I haven't got any feedback #727546-4: Supporting FileField fields
therefore, this is a support request rather than a bug report

gapa’s picture

StatusFileSize
new143.39 KB

in the attached picture you can see diff_values. only "Live comparison" is correct about file path. "live render" and "frozen" are not.

jthomasbailey’s picture

subscribing

arhak’s picture

Title: compatibility with filefield_path » compatibility with filefield_paths
arhak’s picture

Status: Active » Postponed (maintainer needs more info)

I couldn't reproduce it
please, provide detailed configuration steps

I tried with filefield_paths-6.x-1.4
and following settings:
File path: [site-date-yyyy]-[site-date-mm]-[site-date-dd]
File name: fid[filefield-fid]-[filefield-onlyname-original].[filefield-extension-original]
and it worked fine

do you have checked "Retroactive update" or "Active updating"?
perhaps you have another module taking place?

jthomasbailey’s picture

StatusFileSize
new500.78 KB
new316.79 KB
new133.96 KB

I recreated it with both 6.x-1.4 and 6.x-1.x-dev

Filepath: [type]/[yyyy]/[month]/[day]
Filename: [filefield-onlyname-original].[filefield-extension-original]

I don't have "Retroactive update" or "Active Updating" checked. I am using Imagefield and Imagefield Tokens.

arhak’s picture

Title: compatibility with filefield_paths » compatibility with filefield_paths combined with imagefield
Status: Postponed (maintainer needs more info) » Active

filefield_paths works for filefield, but this comes up when combining it with imagefield

J3’s picture

I got same problem no matter disable ImageField or not. My modules
* FileField 6.x-3.7
* ImageField 6.x-3.7
* FileField Paths 6.x-1.4
* Comment driven 6.x-1.x-dev

My FileField Settings:
* File path: mytype/[yyyy]/[mm]/[author-uid]
* Default for other settings

And I tried both Frozen & Live render.

Same as #2 using Inspect:
diff_values (dump)
cck:field_attach (-) array ( 4 => array ( 'fid' => NULL, 'list' => NULL, 'data' => NULL, ), )
cck:field_attach (+) array ( 4 => array ( 'fid' => '478', 'data' => array ( 'description' => '', ), 'list' => '1', 'uid' => '3', 'filename' => '849.zip', 'filepath' => 'sites/default/files/123.zip', 'filemime' => 'application/zip', 'filesize' => '56658', 'status' => '0', 'timestamp' => '1286986182', 'origname' => '', ), )

arhak’s picture

Status: Active » Postponed
socialnicheguru’s picture

taking a look at this in #5 the filepath was:
File path: [site-date-yyyy]-[site-date-mm]-[site-date-dd]

in #9 and some of the others, it looks like there is a problem when the file path creates directories like in # 6 where file path is [type]/[yyyy]/[month]/[day]

I am still having this issue come up.

has anyone found a solution other than the one hinted at in #5?