Upload files one at a time to avoid race-conditions
This commit is contained in:
parent
0d8c6c6adc
commit
4a86adcbe3
1 changed files with 3 additions and 1 deletions
|
@ -190,7 +190,9 @@ class Seance {
|
||||||
// upload pic to server
|
// upload pic to server
|
||||||
console.debug(`Adding to upload queue: ${imageName}`)
|
console.debug(`Adding to upload queue: ${imageName}`)
|
||||||
uploadedImages.push(imageName)
|
uploadedImages.push(imageName)
|
||||||
this.uploadDav(davPath, imagePath)
|
|
||||||
|
// Let's wait for the upload, just to avoid conflicts
|
||||||
|
await this.uploadDav(davPath, imagePath)
|
||||||
|
|
||||||
newLine = '![' + imageAlt + '](' + uploadedPath + '/' + imageName + ')'
|
newLine = '![' + imageAlt + '](' + uploadedPath + '/' + imageName + ')'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue