Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GerardSmit authored Jan 2, 2023
1 parent 427437d commit 73d8d91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Then upload the file the file with `UploadAsync`. This can be done two ways:
string path = @"TestFiles/test.pdf";
string fileName = "test.pdf";

using (System.IO.Stream stream = await File.ReadAllBytesAsync(path))
using (System.IO.Stream stream = File.Open(path, FileMode.Open, FileAccess.Read, FileShare.Read))
{
await _cloudConvertAPI.UploadAsync(uploadTask.Result.Form.Url.ToString(), stream, fileName, uploadTask.Result.Form.Parameters);
}
Expand Down

0 comments on commit 73d8d91

Please sign in to comment.