Created
April 25, 2013 06:16
-
-
Save carlcarl/5457870 to your computer and use it in GitHub Desktop.
Upload file using javascript
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset=utf-8"> | |
<title>test</title> | |
</head> | |
<body> | |
<form name="form" id="form" action="test.php" method="post" enctype="multipart/form-data"> | |
<label for="file">file</label><input type="file" name="file" id="file" onchange="this.form.submit();"/> | |
</form> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment