Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

File extension not being retrieved #105

Open
owinocliff opened this issue Apr 16, 2017 · 1 comment
Open

File extension not being retrieved #105

owinocliff opened this issue Apr 16, 2017 · 1 comment

Comments

@owinocliff
Copy link

$file->getNameWithExtension() doesn't return the name with the extension, just appends the "dot" but without the extension
images

@VivekMoyal28
Copy link

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);
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants