Skip to content

Error 500 while adding media without filename #13410

@dlabarzewski

Description

@dlabarzewski

Describe the Bug

While adding media and deleting their filename (single or multiple) there is error 500, cant parse JSON in dist/utilities/addDataAndFileToRequest.js:41

Link to the code that reproduces this issue

https://github.com/payloadcms/payload

Reproduction Steps

  1. Login to admin panel
  2. Go to media page
  3. Click upload file
  4. Select file
  5. Clear filename input
  6. Click save

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

payload 3.50.0
next 15.4.4
node 20.19.4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions