|
|
@@ -3,7 +3,6 @@ package http
|
|
|
import (
|
|
|
"bytes"
|
|
|
json2 "encoding/json"
|
|
|
- "image"
|
|
|
"io/ioutil"
|
|
|
"net/http"
|
|
|
"strings"
|
|
|
@@ -66,10 +65,10 @@ func parseForm(req *http.Request, v interface{}) error {
|
|
|
if err != nil {
|
|
|
return err
|
|
|
}
|
|
|
- if img, _, err := image.Decode(f); err == nil {
|
|
|
- value[k1+"Height"] = img.Bounds().Max.Y
|
|
|
- value[k1+"Wide"] = img.Bounds().Max.X
|
|
|
- }
|
|
|
+ //if img, _, err := image.Decode(f); err == nil {
|
|
|
+ // value[k1+"Height"] = img.Bounds().Max.Y
|
|
|
+ // value[k1+"Wide"] = img.Bounds().Max.X
|
|
|
+ //}
|
|
|
value[k1] = buf.Bytes()
|
|
|
value[k1+"Filename"] = v1[0].Filename
|
|
|
}
|