File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
app/code/Magento/MediaGalleryUi/view/adminhtml Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2323 "masonryComponentPath": "media_gallery_listing.media_gallery_listing.media_gallery_columns"
2424 }
2525 }
26- }
26+ },
27+ "Magento_MediaGalleryUi/js/validation/validate-filename": {}
2728 }
2829 }
2930</script>
Original file line number Diff line number Diff line change @@ -123,10 +123,10 @@ define([
123123 content : $t ( data . content ) ,
124124 modalClass : 'media-gallery-folder-prompt' ,
125125 validation : true ,
126- validationRules : [ 'required-entry' , 'validate-alphanum ' ] ,
126+ validationRules : [ 'required-entry' , 'validate-filename ' ] ,
127127 attributesField : {
128128 name : 'folder_name' ,
129- 'data-validate' : '{required:true, validate-alphanum }' ,
129+ 'data-validate' : '{required:true, validate-filename }' ,
130130 maxlength : '128'
131131 } ,
132132 attributesForm : {
You can’t perform that action at this time.
0 commit comments