Browse Source

Small fix to upload form (#117)

Fixed bug when you cannot browse or D&D same file multiple times without reloading the whole page.
Dmitry 6 years ago
parent
commit
a70fa745b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      http/upload.html

+ 1 - 1
http/upload.html

@@ -554,7 +554,7 @@
 
 					<a onclick='document.getElementById("browseInput").click();'>Browse</a>
 					<a onclick='UploadFiles();'>Upload</a>
-					<input id="browseInput" type="file" name="upl" onchange="handleFiles(this.files);" multiple />
+					<form><input id="browseInput" type="file" name="upl" onclick="this.form.reset();" onchange="handleFiles(this.files);" multiple /></form>
 				</div>
 
 				<ul id="fileList">