move back the section
This commit is contained in:
@@ -120,6 +120,9 @@ func ParseUpload(r *http.Request) (
|
||||
}
|
||||
|
||||
isChunkedFile, _ = strconv.ParseBool(r.FormValue("cm"))
|
||||
|
||||
if !isChunkedFile {
|
||||
|
||||
dotIndex := strings.LastIndex(fileName, ".")
|
||||
ext, mtype := "", ""
|
||||
if dotIndex > 0 {
|
||||
@@ -132,7 +135,6 @@ func ParseUpload(r *http.Request) (
|
||||
mtype = contentType
|
||||
}
|
||||
|
||||
if !isChunkedFile {
|
||||
if part.Header.Get("Content-Encoding") == "gzip" {
|
||||
isGzipped = true
|
||||
} else if operation.IsGzippable(ext, mtype) {
|
||||
|
||||
Reference in New Issue
Block a user