Skip to content

Bulk upload into a Folder-enabled upload collection doesn't set the folder #16287

@immotus

Description

@immotus

Describe the Bug

When uploading a single file to a folder-enabled upload collection, the Payload automatically sets the current folder for the upload.

However, this doesn't happen when you do a bulk upload into a folder. The folder stays undefined. The only workaround is to use the "Edit all" function to set the folder for all uploads at once.

Video_2026-04-16_011038.mp4

Link to the code that reproduces this issue

https://github.com/immotus/bug-bulk-upload-in-folder

Reproduction Steps

  1. Clone the repo
  2. Go to the Media collection
  3. Create a new folder
  4. Open that folder
  5. Bulk upload multiple files
  6. Observe that the folder is not set to the current folder.

Which area(s) are affected?

area: ui

Environment Info

Binaries:
  Node: 24.8.0
  npm: N/A
  Yarn: N/A
  pnpm: 10.17.0
Relevant Packages:
  payload: 3.82.1
  next: 16.2.3
  @payloadcms/db-mongodb: 3.82.1
  @payloadcms/graphql: 3.82.1
  @payloadcms/next/utilities: 3.82.1
  @payloadcms/richtext-lexical: 3.82.1
  @payloadcms/translations: 3.82.1
  @payloadcms/ui/shared: 3.82.1
  react: 19.2.4
  react-dom: 19.2.4
Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 11 Pro
  Available memory (MB): 32631
  Available CPU cores: 16

Metadata

Metadata

Assignees

Labels

area: uiRelated to the admin panel.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions