/ Published in: PHP
![](/img/icon_sav.png?v3)
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.'; }
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)