uploading files through html forms


/ Published in: PHP
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.