mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adding exception handling for this case
This commit is contained in:
parent
f5a8382933
commit
084e0ab7bb
|
@ -32,7 +32,12 @@ func NewNeedle(r *http.Request) (n *Needle, fname string, e error) {
|
|||
e = fe
|
||||
return
|
||||
}
|
||||
part, _ := form.NextPart()
|
||||
part, fe := form.NextPart()
|
||||
if fe != nil {
|
||||
fmt.Println("Reading Multi part [ERROR]", fe)
|
||||
e = fe
|
||||
return
|
||||
}
|
||||
fname = part.FileName()
|
||||
data, _ := ioutil.ReadAll(part)
|
||||
//log.Println("uploading file " + part.FileName())
|
||||
|
|
Loading…
Reference in a new issue