support PUT
This commit is contained in:
@@ -8,11 +8,10 @@ import (
|
||||
"path"
|
||||
"io/ioutil"
|
||||
"strings"
|
||||
"strconv"
|
||||
)
|
||||
|
||||
func parseMultipart(r *http.Request) (
|
||||
fileName string, data []byte, mimeType string, isGzipped bool, isChunkedFile bool, e error){
|
||||
func parseMultipart(r *http.Request, isChunkedFile bool) (
|
||||
fileName string, data []byte, mimeType string, isGzipped bool, e error) {
|
||||
form, fe := r.MultipartReader()
|
||||
if fe != nil {
|
||||
glog.V(0).Infoln("MultipartReader [ERROR]", fe)
|
||||
@@ -64,8 +63,6 @@ func parseMultipart(r *http.Request) (
|
||||
}
|
||||
}
|
||||
|
||||
isChunkedFile, _ = strconv.ParseBool(r.FormValue("cm"))
|
||||
|
||||
if !isChunkedFile {
|
||||
|
||||
dotIndex := strings.LastIndex(fileName, ".")
|
||||
|
||||
Reference in New Issue
Block a user