|
@ -55,7 +55,7 @@ func (fs *FilerServer) autoChunk(ctx context.Context, w http.ResponseWriter, r * |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
if strings.HasPrefix(err.Error(), "read input:") { |
|
|
if strings.HasPrefix(err.Error(), "read input:") { |
|
|
writeJsonError(w, r, 499, err) |
|
|
writeJsonError(w, r, 499, err) |
|
|
}else if strings.HasSuffix(err.Error(), "is a file") { |
|
|
|
|
|
|
|
|
} else if strings.HasSuffix(err.Error(), "is a file") { |
|
|
writeJsonError(w, r, http.StatusConflict, err) |
|
|
writeJsonError(w, r, http.StatusConflict, err) |
|
|
} else { |
|
|
} else { |
|
|
writeJsonError(w, r, http.StatusInternalServerError, err) |
|
|
writeJsonError(w, r, http.StatusInternalServerError, err) |
|
|