You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the following code to upload a file.After the file upload is completed,the local file is still occupied.
public async Task Upload(string filePath, string bucketName, string objectName)
{
var fileInfo = new FileInfo(filePath);
var putObjectAgs = new PutObjectArgs()
.WithBucket(bucketName)
.WithObject(objectName)
.WithFileName(filePath)
.WithObjectSize(fileInfo.Length);
Use the following code to upload a file.After the file upload is completed,the local file is still occupied.
public async Task Upload(string filePath, string bucketName, string objectName)
{
var fileInfo = new FileInfo(filePath);
var putObjectAgs = new PutObjectArgs()
.WithBucket(bucketName)
.WithObject(objectName)
.WithFileName(filePath)
.WithObjectSize(fileInfo.Length);
The text was updated successfully, but these errors were encountered: