> For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/llms-full.txt.

# Interface: ApiUploadDialog

Defined in: [core/query/siteinfo.ts:717](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L717)

Upload dialog configuration (`siprop=uploaddialog`), mirroring
`$wgUploadDialog` verbatim.

## Properties

### comment?

> `optional` **comment?**: `string` | \{ `foreign?`: `string`; `local?`: `string`; }

Defined in: [core/query/siteinfo.ts:743](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L743)

Default edit summaries, per upload target (`local`/`foreign`), or a single
string on wikis that configure one. `$PAGENAME` and `$HOST` are substituted.

#### Union Members

`string`

***

##### Type Literal

\{ `foreign?`: `string`; `local?`: `string`; }

##### foreign?

> `optional` **foreign?**: `string`

Used when the target is a foreign repo.

##### local?

> `optional` **local?**: `string`

Used when the target is this wiki.

***

### fields?

> `optional` **fields?**: `object`

Defined in: [core/query/siteinfo.ts:719](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L719)

Which extra form fields are shown. Keys are absent when not applicable.

#### categories?

> `optional` **categories?**: `boolean`

The categories field.

#### date?

> `optional` **date?**: `boolean`

The date field.

#### description?

> `optional` **description?**: `boolean`

The free-form description field.

***

### format?

> `optional` **format?**: `object`

Defined in: [core/query/siteinfo.ts:754](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L754)

Templates/placeholder text used to build the file page.

#### description?

> `optional` **description?**: `string`

Template for one description, with `$LANGUAGE` and `$TEXT` substituted.

#### filepage?

> `optional` **filepage?**: `string`

File page wikitext, with `$DESCRIPTION`, `$DATE`, `$SOURCE`, `$AUTHOR`, `$LICENSE` and `$CATEGORIES` substituted.

#### license?

> `optional` **license?**: `string`

Wikitext for the chosen license.

#### ownwork?

> `optional` **ownwork?**: `string`

Source wikitext used when the uploader declares the work as their own.

#### uncategorized?

> `optional` **uncategorized?**: `string`

Wikitext used instead of category links when no categories are given.

***

### licensemessages?

> `optional` **licensemessages?**: `object`

Defined in: [core/query/siteinfo.ts:731](https://github.com/BearBin1215/types-mediawiki-response/blob/d354a9c689faf74c19e13b617a83dcdb7a83726f/src/core/query/siteinfo.ts#L731)

Message keys for the license selectors, per upload target.

#### foreign?

> `optional` **foreign?**: `string`

Used when the target is a foreign repo.

#### local?

> `optional` **local?**: `string`

Used when the target is this wiki.
