Skip to content

Instantly share code, notes, and snippets.

@chihebnabil
Last active August 26, 2016 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chihebnabil/04844a24f698cdd21b245fc86183d093 to your computer and use it in GitHub Desktop.
Save chihebnabil/04844a24f698cdd21b245fc86183d093 to your computer and use it in GitHub Desktop.
upload file with php , Html markup
<!-- The data encoding type, enctype, MUST be specified as below -->
<form enctype="multipart/form-data" action="upload.php" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment