# UploadStorageFile

> Uploads a file to a specified Storage Bucket in Orchestrator.

Uploads a file to a specified Storage Bucket in Orchestrator.

## Definition

**Namespace:** UiPath.Activities.System.API

**Assembly:** UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

## Overloads

|  |  |
| --- | --- |
| `UploadStorageFile(String, IResource, String)` | Uploads a local file to the Orchestrator storage, in a certain bucket. |
| `UploadStorageFile(String, IResource, String, String)` | Uploads a local file to the Orchestrator storage, in a certain bucket and at a certain path. |
| `UploadStorageFile(String, IResource, String, String, Int32)` | Uploads a local file to the Orchestrator storage, in a certain bucket and at a certain path. |

## `UploadStorageFile(String, IResource, String)`

Uploads a local file to the Orchestrator storage, in a certain bucket.

```
void UploadStorageFile(
    string destination,
    IResource fileResource,
    string storageBucketName
)
```

`destination` [String](https://learn.microsoft.com/dotnet/api/system.string) : The path where you want to upload the file in the Storage Bucket.

`fileResource` `IResource` : The file you want to upload.

`storageBucketName` [String](https://learn.microsoft.com/dotnet/api/system.string) : The name of the Storage Bucket where you want to upload the file.

## `UploadStorageFile(String, IResource, String, String)`

Uploads a local file to the Orchestrator storage, in a certain bucket and at a certain path.

```
void UploadStorageFile(
    string destination,
    IResource fileResource,
    string storageBucketName,
    string folderPath
)
```

`destination` [String](https://learn.microsoft.com/dotnet/api/system.string) : The path where you want to upload the file in the Storage Bucket.

`fileResource` `IResource` : The file you want to upload.

`storageBucketName` [String](https://learn.microsoft.com/dotnet/api/system.string) : The name of the Storage Bucket where you want to upload the file.

`folderPath` [String](https://learn.microsoft.com/dotnet/api/system.string) : The path to the Orchestrator Folder you want to use with this activity. If left empty, the current Orchestrator folder is used. This field supports only strings and `String` variables. Use `/` as a subfolder separator to specify the desired folder.

## `UploadStorageFile(String, IResource, String, String, Int32)`

Uploads a local file to the Orchestrator storage, in a certain bucket and at a certain path.

```
void UploadStorageFile(
    string destination,
    IResource fileResource,
    string storageBucketName,
    string folderPath,
    int timeoutMS
)
```

`destination` [String](https://learn.microsoft.com/dotnet/api/system.string) : The path where you want to upload the file in the Storage Bucket.

`fileResource` `IResource` : The file you want to upload.

`storageBucketName` [String](https://learn.microsoft.com/dotnet/api/system.string) : The name of the Storage Bucket where you want to upload the file.

`folderPath` [String](https://learn.microsoft.com/dotnet/api/system.string) : The path to the Orchestrator Folder you want to use with this activity. If left empty, the current Orchestrator folder is used. This field supports only strings and `String` variables. Use `/` as a subfolder separator to specify the desired folder.

`timeoutMS` [Int32](https://learn.microsoft.com/dotnet/api/system.int32) : Wait time before throwing an error.
