added curl request sample to the webpage as well

This commit is contained in:
2022-10-04 00:22:00 +04:00
parent 216c6fd136
commit 4aa4731eff
2 changed files with 4 additions and 0 deletions

View File

@@ -15,6 +15,8 @@
<div>
<label for="formFileLg" class="form-label">Upload your file</label>
<input class="form-control form-control-lg" id="formFileLg" type="file" name="file">
<h3> or </h3>
<pre><code>curl http://localhost:8080/uploadCurl -F add=@&lt;file name&gt;</code></pre>
</div>
<input type="submit" value="Submit">
{{ if .hash }}

View File

@@ -35,6 +35,8 @@
<h3> hash: {{ .hash }} </h3>
{{end}} -->
</form>
<h3 style="color:white"> or </h3>
<h4 style="color:white">curl http://localhost:8080/uploadCurl -F add=@&lt;file name&gt;</h4>
<!-- <a href="#" class="btn btn-white btn-outline-white" tyle="color:#3ac4e2">Upload file</a> -->
<br>
<br>