has attachment_fu changed recently?
Forums > Book - Chapter 7 > has attachment_fu changed recently?
| Author | Message |
|---|---|
|
jjkiesch Member since 22 Jul 23:52 0 posts |
i was having problems getting some of photo unit tests in the book to pass. i soon discovered that the uploaded directories were different in a different format. the attachment_fu plugin currently padds the id of the object to 8 digits and then splits it into separate folders by 4 characters. so a photo with the id of 1 is put in photos/0000/0001/myfile.jpg |
|
juanpaco Member since 16 Mar 19:15 0 posts |
1 Million thanks to you! The copy/paste introduced some odd characters, but that was easily resolved. |
|
jimp Member since 22 Sep 22:18 0 posts |
Hi, |
|
jimp Member since 22 Sep 22:18 0 posts |
Here’s a possible solution to make the program behave as described in the book: |