A Pen by Laura Aubin on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Saving the file on the server | |
function save_file ($file, $name, $arg, $type){ | |
// Verify extension | |
$ext = pathinfo($file.$name, PATHINFO_EXTENSION); | |
$ext = strtolower($ext); | |
verify_extension($ext, $type); | |
// Clear exif data from jpeg images | |
if ($ext == '.jpg' || $ext == '.jpeg') |