fix upload path

This commit is contained in:
Chris Lu 2018-12-17 00:21:34 -08:00
parent 7b7f4215aa
commit 2fb740a2b9

View file

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