MCPcopy Create free account
hub / github.com/CommE2E/comm / uploadFiles

Method uploadFiles

native/input/input-state-container.react.js:739–753  ·  view source on GitHub ↗
(
    localMessageID: string,
    uploadFileInputs: $ReadOnlyArray<UploadFileInput>,
    threadInfo: ThreadInfo,
  )

Source from the content-addressed store, hash-verified

737 };
738
739 async uploadFiles(
740 localMessageID: string,
741 uploadFileInputs: $ReadOnlyArray<UploadFileInput>,
742 threadInfo: ThreadInfo,
743 ) {
744 const results = await Promise.all(
745 uploadFileInputs.map(uploadFileInput =>
746 this.uploadFile(localMessageID, uploadFileInput, threadInfo),
747 ),
748 );
749 const errors = [...new Set(results.filter(Boolean))];
750 if (errors.length > 0) {
751 displayActionResultModal(errors.join(', ') + ' :(');
752 }
753 }
754
755 async uploadFile(
756 localMessageID: string,

Callers 1

InputStateContainerClass · 0.95

Calls 2

uploadFileMethod · 0.95
displayActionResultModalFunction · 0.90

Tested by

no test coverage detected