mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 14:50:55 +03:00
web client: add share mode read/write
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -290,7 +290,7 @@ func doUploadFiles(w http.ResponseWriter, r *http.Request, connection *Connectio
|
||||
}
|
||||
defer file.Close()
|
||||
|
||||
filePath := path.Join(parentDir, f.Filename)
|
||||
filePath := path.Join(parentDir, path.Base(util.CleanPath(f.Filename)))
|
||||
writer, err := connection.getFileWriter(filePath)
|
||||
if err != nil {
|
||||
sendAPIResponse(w, r, err, fmt.Sprintf("Unable to write file %#v", f.Filename), getMappedStatusCode(err))
|
||||
|
||||
Reference in New Issue
Block a user