Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[5.x]: "Rename file" (and others) on folder leads to error message #15301

Closed
webkp opened this issue Jul 4, 2024 · 2 comments
Closed

[5.x]: "Rename file" (and others) on folder leads to error message #15301

webkp opened this issue Jul 4, 2024 · 2 comments
Assignees
Labels

Comments

@webkp
Copy link

webkp commented Jul 4, 2024

What happened?

Description

When selecting a folder and trying to do "Rename file" an error appears (independently of the filesystem type [same with S3 or local]).

Note:
While I create this issue for "Rename file", the other operations like "Preview file", "Download" and "Copy reference tag" lead to errors too when using them on folders. Only "Move" and "Delete" work as expected.

Steps to reproduce

04-07-2024_15-57-54

Expected behavior

Preferred: Disable and grey out "Rename file" as it is the case with "Replace file" and others
-or-
Being able to rename folders (but then I guess it should simply be "Rename" and not "Rename file".

Actual behavior

Operation "Rename file" is available for folders which leads to said error

Craft CMS version

5.2.5

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

  • craftcms/ckeditor 4.1.0
  • mmikkel/cp-field-inspect 2.0.1
  • verbb/expanded-singles 3.0.0
  • fortrabbit/craft-object-storage 4.0.0
  • nystudio107/craft-vite 5.0.0
@i-just
Copy link
Contributor

i-just commented Jul 4, 2024

Hi, thanks for reporting! I raised a PR for this.

@brandonkelly
Copy link
Member

Craft 5.2.6 is out now with a fix for this. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants