Posted By

pckujawa on 08/11/06


Tagged

form php html upload


Versions (?)

Who likes this?

10 people have marked this snippet as a favorite

shamrog12
yuconner
kompo
lee
vali29
skywalker
JimiJay
mrjthethird
nb109
Adam42


uploading files through html forms


 / Published in: PHP
 

The form method must be post and the enctype set as it is below. The hidden input for MAXFILESIZE must also be included. The value is the max file size (in bytes?).

  1. <form method="post" enctype="multipart/form-data">
  2. <input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
  3. <label for="">Label</label>
  4. <input type="file" name="" id="" />
  5. </form>

Report this snippet  

You need to login to post a comment.