meta-box icon indicating copy to clipboard operation
meta-box copied to clipboard

Wrong path when uploading files to media library

Open itd-okl opened this issue 5 years ago • 1 comments

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)

  1. When Meta Box is activated, media files are saved in a a wrong year folder.
  2. 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

itd-okl avatar Mar 10 '20 15:03 itd-okl

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

Longkt avatar Mar 26 '20 08:03 Longkt