# GoogleDriveUploadOptions

File metadata, conversion, chunking, and progress settings for Drive uploads.

Class 

`OfficeIMO.GoogleWorkspace.Drive`

**Namespace**

`OfficeIMO.GoogleWorkspace.Drive`

**Assembly**

`OfficeIMO.GoogleWorkspace.Drive`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[GoogleDriveClient.Media.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L11)

**Modifiers**

sealed

File metadata, conversion, chunking, and progress settings for Drive uploads.

## Inheritance

- object
- GoogleDriveUploadOptions

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Manage Google Drive Files](/docs/google-workspace/drive/) Guide
  
  List, upload, download, copy, and share Google Drive files with the typed GoogleDriveClient from OfficeIMO.GoogleWorkspace.Drive.

## Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Accepted by parameters 5

- Method [GoogleDriveClient.UploadMultipartAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-uploadmultipartasync-byte-officeimo-googleworkspace-drive-googledriveuploadoptions-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `options`
- Method [GoogleDriveClient.UploadResumableAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-uploadresumableasync-byte-officeimo-googleworkspace-drive-googledriveuploadoptions-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `options`
- Method [GoogleDriveClient.UploadResumableFileAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-uploadresumablefileasync-string-officeimo-googleworkspace-drive-googledriveuploadoptions-officeimo-googleworkspace-drive-googledriveresumableuploadcheckpoint-func-officeimo-googleworkspace-drive-googledriveresumableuploadcheckpoint-system-threading-cancellationtoken-system-threading-tasks-task-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `options`
- Method [GoogleDriveClient.UploadResumableStreamAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledriveclient/#method-uploadresumablestreamasync-io-stream-int64-officeimo-googleworkspace-drive-googledriveuploadoptions-officeimo-googleworkspace-drive-googledriveresumableuploadcheckpoint-func-officeimo-googleworkspace-drive-googledriveresumableuploadcheckpoint-system-threading-cancellationtoken-system-threading-tasks-task-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `options`
- Method [GoogleDriveTemporaryContentLease.CreatePublicReadLeaseAsync](/api/google-workspace-drive/officeimo-googleworkspace-drive-googledrivetemporarycontentlease/#method-createpublicreadleaseasync-officeimo-googleworkspace-drive-googledriveclient-byte-officeimo-googleworkspace-drive-googledriveuploadoptions-officeimo-googleworkspace-translationreport-threading-cancellationtoken) parameter `options`

Filter members 

Show inherited

## Constructors

`public GoogleDriveUploadOptions()` [#](#constructor-ctor)

[GoogleDriveClient.Media.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L11)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public string Name { get; set; }` [#](#property-name)

[GoogleDriveClient.Media.cs:11](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L11)

Gets or sets the destination file name.

`public string ContentType { get; set; }` [#](#property-contenttype)

[GoogleDriveClient.Media.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L13)

Gets or sets the uploaded content MIME type.

`public string? ParentId { get; set; }` [#](#property-parentid)

[GoogleDriveClient.Media.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L15)

Gets or sets the destination parent-folder identifier.

`public string? ConvertToGoogleMimeType { get; set; }` [#](#property-converttogooglemimetype)

[GoogleDriveClient.Media.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L17)

Gets or sets a Google-native MIME type into which Drive should convert the upload.

`public int ResumableChunkSize { get; set; }` [#](#property-resumablechunksize)

[GoogleDriveClient.Media.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L19)

Gets or sets the resumable chunk size; values are normalized to Drive's 256 KiB alignment.

`public IProgress<GoogleDriveTransferProgress>? Progress { get; set; }` [#](#property-progress)

[GoogleDriveClient.Media.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.GoogleWorkspace.Drive/GoogleDriveClient.Media.cs#L21)

Gets or sets a receiver for confirmed transfer progress.

<!-- PowerForge markdown artifact sha256:AC492059192FF6D0EC6D9AE97B27C2546CACBEC4340FB18B49E7FADC250D99C3 -->
