Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation media img settings #1438

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/api-reference/miscellaneous/inputs/media-input.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ input MediaInput {
alt: String
image: Upload
mediaUrl: String
asyncDownload: Boolean
}
```

Expand All @@ -53,6 +54,10 @@ Represents an image file in a multipart request.

Represents an URL to an external media.

#### [<code style={{ fontWeight: 'normal' }}>MediaInput.<b>asyncDownload</b></code>](#)<Bullet />[`Boolean`](../../../api-reference/miscellaneous/scalars/boolean.mdx) <Badge class="badge badge--secondary" text="scalar"/> <Badge class="badge badge--secondary" text="miscellaneous"/>

Determine if mediaUrl will downloaded synchronously or not.

### Member Of

[`ProductBulkCreateInput`](../../../api-reference/products/inputs/product-bulk-create-input.mdx) <Badge class="badge badge--secondary" text="input"/>
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ input ProductMediaCreateInput {
image: Upload
product: ID!
mediaUrl: String
asyncDownload: Boolean
}
```

Expand All @@ -58,6 +59,10 @@ ID of an product.

Represents an URL to an external media.

#### [<code style={{ fontWeight: 'normal' }}>ProductMediaCreateInput.<b>asyncDownload</b></code>](#)<Bullet />[`Boolean`](../../../api-reference/miscellaneous/scalars/boolean.mdx) <Badge class="badge badge--secondary" text="scalar"/> <Badge class="badge badge--secondary" text="miscellaneous"/>

Determine if mediaUrl will downloaded synchronously or not.

### Member Of

[`productMediaCreate`](../../../api-reference/products/mutations/product-media-create.mdx) <Badge class="badge badge--secondary" text="mutation"/>
4 changes: 4 additions & 0 deletions docs/setup/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ Controls [Django's secret key](https://docs.djangoproject.com/en/3.0/ref/setting

Controls the production assets mount path. Defaults to `/static/`.

### `DISABLE_MEDIA_DOWNLOAD`

Disable medias download on media creation. Defaults to `False` (ie not disabled).

## Currency exchange

Saleor can automatically convert amounts between currencies. To use this feature, you will need an [Open Exchange Rates account](https://openexchangerates.org/).
Expand Down