Last active
August 26, 2016 13:56
-
-
Save chihebnabil/04844a24f698cdd21b245fc86183d093 to your computer and use it in GitHub Desktop.
upload file with php , Html markup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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