Open hristokoev opened 1 month ago
Just in case, sharing the thread on Discord with a video, displaying the error.
Hi, I've updated to the latest version (v3.0.0-beta.111) and this issue persists. My server log is full of these errors, which happen every time the modal window of the upload field is opened (Create New button).
Is there anything I can do?
npx create-payload-app@beta
blank
template{
name: 'image',
type: 'upload',
relationTo: 'media',
hasMany: true,
}
Create New
button for the image
(upload) field
Link to reproduction
https://github.com/hlinoteka-dev/hlinoteka-payload *The upload relationship field can be found in the Products collection
Payload Version
v3.0.0-beta.94
Node Version
20.14.0
Next.js Version
15.0.0-canary.104
Describe the Bug
When I set a relationship to a media upload collection with
hasMany: true
and I click on + Create New, I getERROR: Unexpected end of JSON input
. The feature still works and I can upload images (one by one). I can still drag and drop multiple images as well, but this error keeps showing up in the terminal:Reproduction Steps
Clicking on the + Choose from existing button doesn't result in this error.
Adapters and Plugins
No response