We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ccabf4 commit bfdf98fCopy full SHA for bfdf98f
server/handles/fsup.go
@@ -251,7 +251,8 @@ func FsPreup(c *gin.Context) {
251
storage := c.Request.Context().Value(conf.StorageKey).(driver.Driver)
252
path := c.Request.Context().Value(conf.PathKey).(string)
253
if !req.Overwrite {
254
- if res, _ := fs.Get(c.Request.Context(), path, &fs.GetArgs{NoLog: true}); res != nil {
+ fullPath := utils.FixAndCleanPath(stdpath.Join(path, req.Name))
255
+ if res, _ := fs.Get(c.Request.Context(), fullPath, &fs.GetArgs{NoLog: true}); res != nil {
256
common.ErrorStrResp(c, "file exists", 403)
257
return
258
}
0 commit comments