Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Media browser shows wrong 'Upload destination' #16633

Open
KyonKisters opened this issue Oct 15, 2024 · 0 comments
Open

Media browser shows wrong 'Upload destination' #16633

KyonKisters opened this issue Oct 15, 2024 · 0 comments
Labels
bug The issue in the code or project, which should be addressed.

Comments

@KyonKisters
Copy link

Bug report

Summary

There is a minor issue with the media browser. The media browser does not recognize that you want to upload a file to a subfolder after first removing a file/image from that same subfolder. This issue only occurs after a file/image has been deleted.

Step to reproduce

  1. Remove a file/image from a subfolder (e.g., folder/subfolder); the image is deleted as expected.
  2. In the same session, try uploading a new file/image using the upload button.
    • The system attempts to upload it to 'subfolder' instead of 'folder/subfolder,' causing the error: "The specified directory is not a
      directory."

This issue only occurs when using the upload button. Uploading via right-click on the subfolder works correctly.
Scherm­afbeelding 2024-10-14 om 16 27 49

Observed behavior

After removing a file from a subfolder (folder/subfolder) and attempting to upload another file in that subfolder, the error "The specified directory is not a directory" is displayed.

Expected behavior

After removing a file/image from a subfolder, I should be able to upload a file/image to that same subfolder without encountering any errors.

Environment

ModX 2.8.4 & 2.8.7

@KyonKisters KyonKisters added the bug The issue in the code or project, which should be addressed. label Oct 15, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug The issue in the code or project, which should be addressed.
Projects
None yet
Development

No branches or pull requests

1 participant