payload icon indicating copy to clipboard operation
payload copied to clipboard

Only one file is saved when uploading multiple images in a multiple field.

Open manutepowa opened this issue 2 months ago • 1 comments

Describe the Bug

When configuring an image field with the hasMany: true option, attempting to upload multiple files at once results in only one of the files being saved correctly in the database.

Link to the code that reproduces this issue

https://github.com/payloadcms/payload

Reproduction Steps

Video https://github.com/user-attachments/assets/3ed984c0-f958-4d36-8c8d-7c2400cfad66

Field config.

{
  type: "upload",
  name: "gallery",
  label: "Galería de imágenes",
  relationTo: "media",
  hasMany: true,
}

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

area: core

Environment Info

Payload v3.5.0

manutepowa avatar Dec 11 '24 13:12 manutepowa