[PR #195] [MERGED] Add Multiple File Upload Support to Chat and Character Galleries #4499

Closed
opened 2026-10-22 04:08:09 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/195
Author: @ghost
Created: 4/23/2026
Status: ✅ Merged
Merged: 4/23/2026
Merged by: @SpicyMarinara

Base: main ← Head: main


📝 Commits (2)

📊 Changes

2 files changed (+18 additions, -14 deletions)

View changed files

📝 packages/client/src/components/characters/CharacterEditor.tsx (+9 -7)
📝 packages/client/src/components/chat/ChatGallery.tsx (+9 -7)

📄 Description

Why this change

Uploading images or artwork to galleries had to select and upload files one at a time because both chat gallery and character gallery were wired for single-file selection only. This change let the user to select and upload multiple images at once

What changed

  • Added multiple attribute to gallery file inputs in ChatGallery.tsx and CharacterGalleryTab.
  • Updated handleUpload in both components to iterate over all selected files instead of only the first one
  • Renamed button text: "Upload Image" → "Upload Images" and "Upload Character Image" → "Upload Character Images" in ChatGallery.tsx and CharacterEditor.tsx respectively

Validation

  • pnpm check
  • Manual verification completed
    Hard refresh in browser confirmed the file picker now allows multi-select in both galleries

Manual verification notes

  • Opened Character Gallery tab and Chat Gallery in a chat
  • Clicked the upload button and confirmed the OS file picker allows selecting multiple files
  • Uploaded 3 images in one selection and confirmed all were added to the gallery

Docs and release impact

  • No docs changes needed

UI evidence

Screenshot 2026-04-23 064656 Screenshot 2026-04-23 065351

The file picker able to let the user select and upload multiple files at once


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/195 **Author:** [@ghost](https://github.com/ghost) **Created:** 4/23/2026 **Status:** ✅ Merged **Merged:** 4/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`2e9365b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e9365ba408285e771dd5d2a2fc84c576fd8b871) Fix: Add multiple file upload support to chat and character galleries - [`1a16603`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1a166033039094c2c9b8ee1eb8655e724bd7bb38) Merge branch 'main' of https://github.com/0-trspace/Marinara-Engine ### 📊 Changes **2 files changed** (+18 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+9 -7) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+9 -7) </details> ### 📄 Description ## Why this change Uploading images or artwork to galleries had to select and upload files one at a time because both chat gallery and character gallery were wired for single-file selection only. This change let the user to select and upload multiple images at once ## What changed - Added `multiple` attribute to gallery file inputs in `ChatGallery.tsx` and `CharacterGalleryTab`. - Updated `handleUpload` in both components to iterate over all selected files instead of only the first one - Renamed button text: "Upload Image" → "Upload Images" and "Upload Character Image" → "Upload Character Images" in `ChatGallery.tsx` and `CharacterEditor.tsx` respectively ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` - [x] Manual verification completed Hard refresh in browser confirmed the file picker now allows multi-select in both galleries ### Manual verification notes - Opened Character Gallery tab and Chat Gallery in a chat - Clicked the upload button and confirmed the OS file picker allows selecting multiple files - Uploaded 3 images in one selection and confirmed all were added to the gallery ## Docs and release impact - [x] No docs changes needed ## UI evidence <img width="48%" alt="Screenshot 2026-04-23 064656" src="https://github.com/user-attachments/assets/f82cfa93-f750-4dcf-97dd-49d11f1af995" /> <img width="48%" alt="Screenshot 2026-04-23 065351" src="https://github.com/user-attachments/assets/a4a128db-15e1-4c5d-8579-ddb70eff3e43" /> > The file picker able to let the user select and upload multiple files at once --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:09 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4499
No description provided.