mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-10-15 07:06:19 +08:00
report errors when upload timeouts
This commit is contained in:
@@ -60,7 +60,12 @@ func NewNeedle(r *http.Request) (n *Needle, e error) {
|
||||
e = errors.New("No file found!")
|
||||
return
|
||||
}
|
||||
data, _ := ioutil.ReadAll(part)
|
||||
data, ioe := ioutil.ReadAll(part)
|
||||
if ioe != nil {
|
||||
e = ioe
|
||||
log.Println("Reading Content [ERROR]", ioe)
|
||||
return
|
||||
}
|
||||
dotIndex := strings.LastIndex(fname, ".")
|
||||
ext, mtype := "", ""
|
||||
if dotIndex > 0 {
|
||||
|
Reference in New Issue
Block a user