mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
sftpd: fix file upload resume detection
WinSCP does not set the APPEND flag while resuming a file upload, so we detect a file upload resume if the TRUNCATE flag is not set. The APPEND flag is now ignored. Fixes #420
This commit is contained in:
@@ -1191,7 +1191,7 @@ func TestQuotaLimits(t *testing.T) {
|
||||
testFilePath2 := filepath.Join(homeBasePath, testFileName2)
|
||||
err = createTestFile(testFilePath2, testFileSize2)
|
||||
assert.NoError(t, err)
|
||||
client := getWebDavClient(user, false, nil)
|
||||
client := getWebDavClient(user, true, nil)
|
||||
// test quota files
|
||||
err = uploadFile(testFilePath, testFileName+".quota", testFileSize, client)
|
||||
if !assert.NoError(t, err, "username: %v", user.Username) {
|
||||
|
||||
Reference in New Issue
Block a user