i have an upload form that upload image into a folder i want the upload field not to post a blank field and also not to allow any image which is not gif, jpeg and png not to be uploaded how can i do these with javascript. the code below is my upload form code
Code:
<form name="the_form" id="the_form" method="POST" action="uploaded.php" enctype="multipart/form-data">
<input name="images[]" type="file" id="field_1" >
<input type="hidden" name="MAX_FILE_SIZE" value="2000000">
<input name="submit" type="submit" value="submit" />
</form>
Comment