Can We find out the extension of the original file from $_FILES["file"]["tmp_name"] ? For example jpg or png etc?
$name = $_FILES["file"]["name"]; $ext = end((explode(".", $name))); # extra () to prevent notice  echo $ext; 
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With