Closed AlexOConnorHub closed 3 years ago
When the file extension is in the filename, it was removed by the str_replace. Changing this to the basename() function fixes this, as the function specifically removes the extension, and not every instance of the file extension.
str_replace
basename()
When the file extension is in the filename, it was removed by the
str_replace
. Changing this to thebasename()
function fixes this, as the function specifically removes the extension, and not every instance of the file extension.