Skip to content

Commit

Permalink
Update Docs: migrate Beta Features - Image Size Limit (#7062)
Browse files Browse the repository at this point in the history
* Update Docs: migrate Beta Features - Image Size Limit

* Docs: add media limit to File widget, trim example text
  • Loading branch information
privatemaker authored Jan 23, 2024
1 parent a3939e0 commit c21b30d
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 16 deletions.
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
```

0 comments on commit c21b30d

Please sign in to comment.