Skip to content

UploadFeature thumbnail problem in @payload/richtext-lexical when not using image files #6867

Open
@galcsikgyozo

Description

@galcsikgyozo

Link to reproduction

No response

Payload Version

3.0.0-beta.53

Node Version

20.9.0

Next.js Version

15.0.0-rc.0

Describe the Bug

Using the UploadFeature in @payload/richtext-lexical, anything that is not an image is still included in an <img> tag instead of using a fallback thumbnail like on the List View of the Media collection.

<img alt="video-example.mp4" data-lexical-upload-id="X" data-lexical-upload-relation-to="media" src="/api/media/file/video-example.mp4">
Screenshot 2024-06-20 at 10 29 24

Reproduction Steps

UploadFeature passed to the lexicalEditor.
Trying to upload a file which is not an image.

Adapters and Plugins

richtext-lexical, UploadFeature

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions