/ Published in: PHP
form enctype="multipart/form-data"
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if($_FILES['image']['name'] != '') { echo 'Filetype not supported.'; if ($_FILES['image']['size'] > 1000000) echo 'File size too high, 1MB is allowed.'; }