18 lines
		
	
	
		
			495 B
		
	
	
	
		
			HTML
		
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			495 B
		
	
	
	
		
			HTML
		
	
	
	
| {% extends "layout.html" %}
 | |
| {% block body %}
 | |
|   <form action="" id="form" name="fileForm" method="post" enctype="multipart/form-data" class="uploadForm">
 | |
|     <div class="uploadButton">
 | |
|       <p>
 | |
|         Select a file
 | |
|       </p>
 | |
|       <input id="file" type="file" name="file">
 | |
|     </div>
 | |
|     <input type="hidden" name="source" value="web">
 | |
|   </form>
 | |
|   <script>
 | |
|   document.getElementById("file").onchange = function() {
 | |
|     document.getElementById("form").submit();
 | |
|   };
 | |
|   </script>
 | |
| {% endblock %}
 |