ucfopen/Materia-Server-Client-Assets

Media importer somewhat fragile when expecting assets to have file extensions in 'title' field

iturgeon opened this issue · 0 comments

If title doesn't have a file extension, this line will throw an error - causing the user to not be able to see any of their media or import any of their media.

const fileName = res.title.match(/.*(?=\.)/i)[0]