Skip to content

Conversation

@abhipatel0211
Copy link
Contributor

@abhipatel0211 abhipatel0211 commented Jun 29, 2024

Proposed changes (including videos or screenshots)

Changes

  1. Multiple file sharing in one message.
  2. Multiple file sharing in one message in E2E encrypted rooms.
  3. Functionality of adding and removing files in FileUploadModal.
  4. Updated API endpoints rooms.media/:rid and rooms.mediaConfirm/:rid/:fileId to handle multiple files.

Closes #35651
Closes #24776
Closes RocketChat/feature-requests#31

Steps to test or reproduce

  1. Go to a room.
  2. Try sharing multiple files.
  3. Confirm file selected.
  4. Use the FileUploadModal to add and remove files.

Further comments

This implementation is an initial version of the multiple file sharing feature. While it is functional, some minor bugs remain, particularly with image file sharing, which will be addressed in future updates.

CORE-847


This pull request introduces the ability to send multiple files in a single message within the Rocket.Chat application. Key changes include:

  • File Upload Enhancements: The file upload functionality has been significantly refactored to support multiple files, including updates to the UploadsAPI interface with new methods for managing uploads and handling encrypted content. The Upload type definition now includes both file and URL properties.

  • New Components and Hooks: Several new components and hooks have been added to manage file uploads, such as MessageComposerFile, MessageComposerFileArea, and MessageComposerFileLoader, which provide UI elements for file management, preview, and error handling. The useFileUploadDropTarget hook has been introduced to streamline file upload handling.

  • Thread and Message Integration: The PR adds support for thread-specific uploads and integrates file upload capabilities into various components like MessageBox, AudioMessageRecorder, and VideoMessageRecorder. The confirmFiles function is introduced to handle file confirmation and sending, with error handling and cleanup processes.

  • Localization and API Updates: The English localization file has been updated with new messages related to upload failures and file count limitations. A new API endpoint for media editing has been added to the REST typings.

Overall, this pull request enhances the file upload experience by allowing multiple files to be sent in a single message, improving the user interface, and refining the underlying upload logic.

@ricardogarim ricardogarim force-pushed the feat/multiple_files_in_one_msg branch from b6f7463 to 2dea937 Compare January 14, 2026 16:45
@alfredodelfabro alfredodelfabro removed this from the 8.1.0 milestone Jan 15, 2026
@ricardogarim ricardogarim force-pushed the feat/multiple_files_in_one_msg branch 2 times, most recently from a03c9e5 to d24c43b Compare January 15, 2026 20:51
@dougfabris dougfabris force-pushed the feat/multiple_files_in_one_msg branch from 5920e45 to 1dd6c3e Compare January 15, 2026 22:52
@dougfabris dougfabris force-pushed the feat/multiple_files_in_one_msg branch from 3e314a9 to c93448c Compare January 28, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet