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

Update Docs: migrate Beta Features - Image Size Limit #7062

Merged
Merged
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
15 changes: 0 additions & 15 deletions website/content/docs/beta-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,6 @@ You can now provide your own element for Decap CMS to mount in by setting the ta



## Image widget file size limit

You can set a limit to as what the maximum file size of a file is that users can upload directly into a image field.

Example config:

```yaml
- label: 'Featured Image'
name: 'thumbnail'
widget: 'image'
default: '/uploads/chocolate-dogecoin.jpg'
media_library:
config:
max_file_size: 512000 # in bytes, only for default media library
```

## Summary string template transformations

Expand Down
12 changes: 12 additions & 0 deletions website/content/docs/widgets/file.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,15 @@ The file widget allows editors to upload a file or select an existing one from t
config:
multiple: true
```

### File Size Limit

You can set a limit to as what the maximum file size of a file is that users can upload directly into a file field.

**Example**

```yaml
media_library:
config:
max_file_size: 1024000 # in bytes, only for default media library
```
14 changes: 13 additions & 1 deletion website/content/docs/widgets/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,16 @@ The image widget allows editors to upload an image or select an existing one fro
media_library:
config:
multiple: true
```
```

### Image Size Limit

You can set a limit to as what the maximum file size of a file is that users can upload directly into a image field.

**Example**

```yaml
media_library:
config:
max_file_size: 512000 # in bytes, only for default media library
```