cancel
Showing results for 
Search instead for 
Did you mean: 

Update Media Gallery support hyphens and underscores in folder names when creating new folders

0 Kudos

Update Media Gallery support hyphens and underscores in folder names when creating new folders

The new Media gallery introduced in the 2.4.2x series doesn't allow you to enter a hyphen or underscore when naming a newly created folder. It displays this error when you try:

 

"Please use only letters (a-z or A-Z) or numbers (0-9) in this field. No spaces or other characters are allowed."

 

Steps to Reproduce:

 

  1. Go to Content Menu -> Media Manager
  2. Click on a folder WYSIWYG folder to expand sub folders
  3. Select a folder to create a sub folder in. e.g. "WYSIYWG"
  4. Click Create Folder button
  5. Enter in "test-folder" or "test_folder"
  6. Click Confirm Error message appears.

I'm proposing Magento make a configuration file or something similar that would allow the user to whitelist characters to be allowed in a folder name. Previous versions of the gallery allowed users to put hyphens and underscores in folder names. Hyphens and underscores are commonly used in folder naming conventions. I see no security risk in allowing these specific characters. Would love to see this implemented as it doesn't seem very difficult.