I want get uploaded image extension.
As I know, best way is getimagesize()
function.
but this function's mime, returns image/jpeg
when image has .jpg
or also .JPEG
extension.
How can get exactly extension?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…