added upload speed test

This commit is contained in:
Akilan1999
2021-03-21 22:15:32 +04:00
parent 4e3bf72a36
commit c3d74f3922
4 changed files with 233 additions and 207 deletions

View File

@@ -3,7 +3,6 @@ package server
import (
"fmt"
"github.com/gin-gonic/gin"
"log"
"net/http"
//"fmt"
)
@@ -24,7 +23,6 @@ func Server() {
// Route build to do a speed test
r.GET("/upload", func(c *gin.Context) {
file, _ := c.FormFile("file")
log.Println(file.Filename)
// Upload the file to specific dst.
// c.SaveUploadedFile(file, dst)