# Editor.Asset.UploadVideo

## Overload 1

```csharp
static System.Threading.Tasks.Task<bool> UploadVideo(Asset asset, byte[] contents, bool isThumbVideo, bool hidden = False, string tag = null, Callback progress = null, System.Threading.CancellationToken token = null)
```

Upload a video for this package

### Parameters

- `asset` (`Asset`)
- `contents` (`byte[]`)
- `isThumbVideo` (`bool`)
- `hidden` (`bool`), default `False`
- `tag` (`string`), default `null`
- `progress` (`Callback`), default `null`
- `token` (`System.Threading.CancellationToken`), default `null`

### Returns

`System.Threading.Tasks.Task<bool>`

## Overload 2

```csharp
static System.Threading.Tasks.Task<bool> UploadVideo(Asset asset, byte[] contents, bool isThumbVideo, bool hidden = False, string tag = null, Callback progress = null, System.Threading.CancellationToken token = null)
```

Upload a video for this package

### Parameters

- `asset` (`Asset`)
- `contents` (`byte[]`)
- `isThumbVideo` (`bool`)
- `hidden` (`bool`), default `False`
- `tag` (`string`), default `null`
- `progress` (`Callback`), default `null`
- `token` (`System.Threading.CancellationToken`), default `null`

### Returns

`System.Threading.Tasks.Task<bool>`

Declared in [Editor.Asset](/api/Editor.Asset).
Assembly: `Sandbox.Tools`.
