todos
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user