Code has been added to clipboard!

Adding PHP File Limitations

Example
// Limiting what file formats are allowed
if($image_file_type != "gif" && $image_file_type != "jpg" && $image_file_type != "jpeg" && $image_file_type != "png") {
    echo "Only JPG, JPEG, PNG & GIF files are allowed.";
    $upload_ok = 0;
}