]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - app/index.html
Clear the file input prior to triggering it
[perso/Immae/Projets/Nodejs/Surfer.git] / app / index.html
index adb7591c94f2095046dea860fc974da7355395a9..93fa57e27a11e25b9d79500686c02576486e7e34 100644 (file)
         <div class="row">
             <div class="col-lg-12">
                 <center>
-                    <input type='file' v-el:upload style="display: none" id="uploadInput"/>
-                    <button class="btn btn-primary" v-on:click="upload()" id="uploadButton">Upload</button>
+                    <form id="fileUploadForm">
+                        <input type="file" v-el:upload style="display: none" id="uploadInput"/>
+                        <button class="btn btn-primary" v-on:click="upload()" id="uploadButton">Upload</button>
+                    </form>
                 </center>
                 <br/>
             </div>