Open owinocliff opened 7 years ago
$file->getNameWithExtension() doesn't return the name with the extension, just appends the "dot" but without the extension
If you want to get the extension in PHP than you can use this
function get_file_extension($file_name) { return substr(strrchr($file_name,'.'),1); }
$file->getNameWithExtension() doesn't return the name with the extension, just appends the "dot" but without the extension