I am able to upload small files to fileshare using below code but large files are not getting transferred. There are methods like blob.PutBlock
available to upload files to Blob, but can't find anything for fileshare. Can you please guide me?
StorageCredentials cred = new StorageCredentials("SASToken");
CloudFileClient fClient = new CloudFileClient(new Uri(FileShareUrl)), cred);
CloudFileShare fshare = fileClient.GetShareReference("FileShareName");
CloudFileDirectory root = share.GetRootDirectoryReference();
CloudFileDirectory dir = root.GetDirectoryReference("Folder/subfolder");
var cloudFile = dir.GetFileReference(fileName);
await cloudFile.UploadFromStreamAsync(incomingBlob).ConfigureAwait(false);