Error uploading file to external storage

Good day.

There was a problem uploading files to external storage.

External storage is a shared folder created in the Windows Server 2019 operating system. External storage connection is successful, the folder is displayed in the cloud, but when I try to upload files to the folder, I get an error:


[webdav] Error: Icewind\SMB\Exception\FileInUseException: Invalid request for /122812721728_20.06.2022.pdf.ocTransferId321668697.part (FileInUseException) at <<closure>>

 0. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php line 75
    Icewind\SMB\Exception\Exception::fromMap()
 1. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php line 92
    Icewind\SMB\Native\NativeState->handleError()
 2. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php line 190
    Icewind\SMB\Native\NativeState->testResult()
 3. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php line 172
    Icewind\SMB\Native\NativeState->unlink()
 4. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php line 422
    Icewind\SMB\Native\NativeShare->del()
 5. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 268
    OCA\Files_External\Lib\Storage\SMB->unlink()
 6. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/PermissionsMask.php line 107
    OC\Files\Storage\Wrapper\Wrapper->unlink()
 7. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php line 268
    OC\Files\Storage\Wrapper\PermissionsMask->unlink()
 8. /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php line 284
    OC\Files\Storage\Wrapper\Wrapper->unlink()
 9. <<closure>>
    OC\Files\Storage\Wrapper\Availability->unlink()
10. /var/www/nextcloud/apps/files_trashbin/lib/Storage.php line 193
    call_user_func()
11. /var/www/nextcloud/apps/files_trashbin/lib/Storage.php line 102
    OCA\Files_Trashbin\Storage->doDelete()
12. /var/www/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php line 195
    OCA\Files_Trashbin\Storage->unlink()
13. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php line 362
    OCA\FilesAccessControl\StorageWrapper->unlink()
14. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php line 151
    OCA\DAV\Connector\Sabre\File->put()
15. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1098
    OCA\DAV\Connector\Sabre\Directory->createFile()
16. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 504
    Sabre\DAV\Server->createFile()
17. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPut()
18. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
19. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
20. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
21. /var/www/nextcloud/apps/dav/appinfo/v1/webdav.php line 85
    Sabre\DAV\Server->exec()
22. /var/www/nextcloud/remote.php line 171
    require_once("/var/www/nextcl ... p")

PUT /remote.php/webdav/TST/122812721728_20.06.2022.pdf
from 192.168.17.134 by Guest223 at 2022-12-01T13:42:07+00:00

NAS network shared folders connected as external storage, or network shared folders in the Windows Server 2016 operating system, work fine.

The error appears precisely when working with Windows Server 2019.
Updated nextcloud to the latest version.

Thanks in advance.