|
@ -32,7 +32,12 @@ func NewNeedle(r *http.Request) (n *Needle, fname string, e error) { |
|
|
e = fe |
|
|
e = fe |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
part, _ := form.NextPart() |
|
|
|
|
|
|
|
|
part, fe := form.NextPart() |
|
|
|
|
|
if fe != nil { |
|
|
|
|
|
fmt.Println("Reading Multi part [ERROR]", fe) |
|
|
|
|
|
e = fe |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
fname = part.FileName() |
|
|
fname = part.FileName() |
|
|
data, _ := ioutil.ReadAll(part) |
|
|
data, _ := ioutil.ReadAll(part) |
|
|
//log.Println("uploading file " + part.FileName())
|
|
|
//log.Println("uploading file " + part.FileName())
|
|
|