It seems that while trying to get the size it puts the system path in the image filepath...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image_filter.module_0.patch | 1.45 KB | David Hull |
| image_filter.module.patch | 622 bytes | magico |
It seems that while trying to get the size it puts the system path in the image filepath...
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | image_filter.module_0.patch | 1.45 KB | David Hull |
| image_filter.module.patch | 622 bytes | magico |
Comments
Comment #1
David Hull commentedActually, that was intentional. The path in the files table is relative to the
file_directory_pathdirectory. I use the defaultfile_directory_pathof "files", so callingfile_create_pathmakes it relative to the top-level drupal directory. This is the URL that is returned in theimgtag.However, I see that this would be a problem if you used an absolute directory name for
file_directory_path(you'd also need to havefile_downloadsset toFILE_DOWNLOADS_PRIVATE). I see also that there's a functionfile_create_urlI should probably be calling instead. Try the attached patch and see if it works.Comment #2
magico commentedI tested and it works! Thanks
Comment #3
David Hull commentedGreat! I've applied the fix in CVS and 4.6.0.
Comment #4
(not verified) commented