You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To save images based on post_date to subfolder /uploads/year/month rather than current year/month, in file imageUploader.php, function getUploadDir, line 105, was:
In Windows (at least running WAMP), WP constant DIRECTORY_SEPARATOR is set to '', which is removed when written to the database, resulting in broken URLs like /wp-content/uploads/2023/05imagefilename.jpg instead of /wp-content/uploads/2023/05/imagefilename.jpg. I don't know if this will be the case for all Windows installs, but if you run into issues, just search/replace DIRECTORY_SEPARATOR with '/' in file imageUploader.php.
The text was updated successfully, but these errors were encountered:
To save images based on post_date to subfolder /uploads/year/month rather than current year/month, in file imageUploader.php, function getUploadDir, line 105, was:
change to:
In Windows (at least running WAMP), WP constant DIRECTORY_SEPARATOR is set to '', which is removed when written to the database, resulting in broken URLs like /wp-content/uploads/2023/05imagefilename.jpg instead of /wp-content/uploads/2023/05/imagefilename.jpg. I don't know if this will be the case for all Windows installs, but if you run into issues, just search/replace DIRECTORY_SEPARATOR with '/' in file imageUploader.php.
The text was updated successfully, but these errors were encountered: