This commit is contained in:
Bel LaPointe
2022-02-08 17:11:39 -07:00
parent 7b51fd077d
commit fc263d6c2d
4 changed files with 49 additions and 29 deletions

View File

@@ -162,7 +162,7 @@ func (server *Server) postContentHandler(fileDir string, w http.ResponseWriter,
if r.Method != http.MethodPost {
return "", errors.New("not found")
}
id := uuid.New().String()
id := strings.Split(uuid.New().String(), "-")[0]
if strings.HasPrefix(r.Header.Get("Content-Type"), "multipart/form-data") {
kb := int64(1 << 10)
mb := kb << 10