Browse Source

fix upload path

pull/800/head
Chris Lu 6 years ago
parent
commit
2fb740a2b9
  1. 2
      weed/server/filer_server_handlers_write.go

2
weed/server/filer_server_handlers_write.go

@ -191,7 +191,7 @@ func (fs *FilerServer) PostHandler(w http.ResponseWriter, r *http.Request) {
crTime := time.Now()
if err == nil && existingEntry != nil {
if existingEntry.IsDirectory() {
path += ret.Name
path += "/" + ret.Name
} else {
crTime = existingEntry.Crtime
}

Loading…
Cancel
Save