|
@ -84,7 +84,7 @@ func (fs *FilerServer) monolithicUploadAnalyzer(w http.ResponseWriter, r *http.R |
|
|
*/ |
|
|
*/ |
|
|
lastPos := strings.LastIndex(r.URL.Path, "/") |
|
|
lastPos := strings.LastIndex(r.URL.Path, "/") |
|
|
if lastPos == -1 || lastPos == 0 || lastPos == len(r.URL.Path)-1 { |
|
|
if lastPos == -1 || lastPos == 0 || lastPos == len(r.URL.Path)-1 { |
|
|
glog.V(0).Infoln("URL Path [%s] is invalid, could not retrieve file name", r.URL.Path) |
|
|
|
|
|
|
|
|
glog.V(0).Infof("URL Path [%s] is invalid, could not retrieve file name", r.URL.Path) |
|
|
err = fmt.Errorf("URL Path is invalid") |
|
|
err = fmt.Errorf("URL Path is invalid") |
|
|
writeJsonError(w, r, http.StatusInternalServerError, err) |
|
|
writeJsonError(w, r, http.StatusInternalServerError, err) |
|
|
return |
|
|
return |
|
|