feat: only runs adminThumbnail func if image type
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user