Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $allowed = array('gif', 'png', 'jpg');
- $filename = $_FILES['video_file']['name'];
- $ext = pathinfo($filename, PATHINFO_EXTENSION);
- if (!in_array($ext, $allowed)) {
- echo 'error';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement