If I use insert module with patch (http://drupal.org/node/1923336#comment-7096002) it insert a link with image style token. The token depend on (styled)image path. Filefield Paths modifies (styled)image path, but not regenerate (styled)image token (?itok=[Image token]) then (styled)image will be unaccessible after save content.
The original image link don't affected this issue.
see:
http://drupal.org/drupal-7.20-release-notes
http://drupal.org/node/1923336
https://drupal.org/sandbox/pp/1924318 (my little module witch generate itoken to old image links)
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | filefield_paths.module.zip | 4.09 KB | MStrzelecki_ |
| #2 | filefield-paths-insert-module-1925298-2.patch | 2.47 KB | David_Rothstein |
Comments
Comment #1
hgurol commentedI believe this is a major problem.
Comment #2
David_Rothstein commentedHere's a patch that seems to work. It's ugly code, but I'm not sure how to fix it differently without refactoring the whole module.
Comment #3
pp commentedThe patch work for me.
I made this steps: http://drupal.org/node/1923336#comment-7097378
After I made a node with styled image. Without patch the token was wrong and I can't download the image, with patch the token was good and image presented.
Comment #4
MStrzelecki_ commentedSame here...
Comment #5
Barneyvaughan commentedIs there any chance of anybody linking to a patched filefields_paths.module file? I'm really struggling to patch mine...
Comment #6
MStrzelecki_ commentedIt should work.
Comment #7
patrickfgoddard commentedI, too, was unable to patch, but the file in zip worked great.
Thank you for creating this fix. Solved huge problem for our site, where inserted images broke when CREATING a node, due to tokens in image path names and style not being generated on save. To work around, we had to create node, with images saved, THEN re-edit node and insert images. A real pain in the workflow. This patch solves a huge issue with us, so thanks!
-pat
Comment #8
decipheredThanks for the work, committed to 7.x-1.x.
Cheers,
Deciphered.