mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 07:33:17 +00:00
Merge pull request #15151 from strapi/fix/media-upload-diacritics
fix(upload): normalize the string used as basename
This commit is contained in:
commit
76bdf07031
@ -77,8 +77,8 @@ module.exports = ({ strapi }) => ({
|
||||
if (!ext) {
|
||||
ext = `.${extension(type)}`;
|
||||
}
|
||||
const basename = path.basename(fileInfo.name || filename, ext);
|
||||
const usedName = fileInfo.name || filename;
|
||||
const usedName = (fileInfo.name || filename).normalize();
|
||||
const basename = path.basename(usedName, ext);
|
||||
|
||||
const entity = {
|
||||
name: usedName,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user