media path when not using year/month folders
-
One of my clients is using WP just as a CMS (no blogging) and does not put their media files into year/month folders so they are all in the /uploads/ folder, no subdirectories.
On my WAMP development server I am testing replacing the current gallery plugin with FG and ran into an issue with the Albums extension, specifically the gallery cover image does not load.
I figured out why – in /foogallery/includes/WPThumb/wpthumb.php, lines 331-332:
$subdir = dirname( str_replace( $upload_dir['basedir'], '', $this->getFilePath() ) ); $new_dir = $upload_dir['basedir'] . '/cache' . $subdir . '/' . $filename_nice;
Without subdirectories, on my WAMP server
$subdir
results in “\”, which give a url of “cache\/”.$filenameBrowsers are having a difficult time loading images with the backslash followed by forward slash. I imagine on a *nix server it would be 2 forward slashes, which is potentially problematic as well but not as bad. Just wanted to bring this to someone’s attention. Probably a low-priority bug, but it should be remedied.
- The topic ‘media path when not using year/month folders’ is closed to new replies.