Wrong path when uploading files to media library
Issue Overview
Meta Box is responsible for setting a wrong path when uploading media files to the media library. The files are stored in a wrong year folder. . Meta Box version: 5.2.7 Used extensions:
- Meta Box Columns
- Meta Box Conditional Logic
- Meta Box Group
Steps to Reproduce (for bugs)
- When Meta Box is activated, media files are saved in a a wrong year folder.
- When deactivating the plugin, the media files are saved at the right directory.
Expected Behavior
When uploading files via WordPress backend, the files should be stored within the right year folder.
Current Behavior
When uploading files via WordPress backend to the media library, the files are stored in a wrong directory regarding the year and month.
Possible Solution
Screenshots / Video
Related Issues and/or PRs
Todos
- [ ] Tests
- [ ] Documentation
Hi @okl7
I cannot reproduce this issue on my end. In regular, the WordPress core uses the time when uploading the image to save to the corresponding folder year/month/image-file and in my local site the image is uploaded to the right path as well.
Could you please switch to the default theme of WordPress (Twenty Twenty) then upload the image again? And please take some screenshots about Attachment Details. https://cl.ly/36d4b405c4d7