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

Method uploadFiles

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

Source from the content-addressed store, hash-verified

755 };
756
757 async uploadFiles(
758 localMessageID: string,
759 uploadFileInputs: $ReadOnlyArray<UploadFileInput>,
760 threadInfo: ThreadInfo,
761 ) {
762 const results = await Promise.all(
763 uploadFileInputs.map(uploadFileInput =>
764 this.uploadFile(localMessageID, uploadFileInput, threadInfo),
765 ),
766 );
767 const errors = [...new Set(results.filter(Boolean))];
768 if (errors.length > 0) {
769 displayActionResultModal(errors.join(', ') + ' :(');
770 }
771 }
772
773 async uploadFile(
774 localMessageID: string,

Callers 1

InputStateContainerClass · 0.95

Calls 2

uploadFileMethod · 0.95
displayActionResultModalFunction · 0.90

Tested by

no test coverage detected