mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 02:37:49 +02:00
Improved documentation to have correct implementation to upload large files
This commit is contained in:
parent
f5d453f6b7
commit
d95567da11
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ FileStatus fileStatus;
|
|||
status = fileStore.CreateFile(out fileHandle, out fileStatus, remoteFilePath, AccessMask.GENERIC_WRITE | AccessMask.SYNCHRONIZE, FileAttributes.Normal, ShareAccess.None, CreateDisposition.FILE_CREATE, CreateOptions.FILE_NON_DIRECTORY_FILE | CreateOptions.FILE_SYNCHRONOUS_IO_ALERT, null);
|
||||
if (status == NTStatus.STATUS_SUCCESS)
|
||||
{
|
||||
int writeOffset = 0;
|
||||
long writeOffset = 0;
|
||||
while (localFileStream.Position < localFileStream.Length)
|
||||
{
|
||||
byte[] buffer = new byte[(int)client.MaxWriteSize];
|
||||
|
|
Loading…
Add table
Reference in a new issue