feat: only runs adminThumbnail func if image type

This commit is contained in:
James
2021-03-14 15:53:00 -04:00
parent 521b49afbf
commit 5e1ddb552e
2 changed files with 9 additions and 4 deletions

View File

@@ -133,6 +133,11 @@ const Media = {
}
```
<Banner>
<strong>Note:</strong><br/>
If you specify a function to return an admin thumbnail, but your upload is not an image file type (for example, PDF or TXT) your function will not be used. Instead, Payload will display its generic file upload graphic.
</Banner>
### Uploading Files
<Banner type="warning">