MCPcopy
hub / github.com/basecamp/trix / attachFiles

Method attachFiles

src/trix/controllers/input_controller.js:42–51  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

40 }
41
42 attachFiles(files) {
43 const operations = Array.from(files).map((file) => new FileVerificationOperation(file))
44 return Promise.all(operations).then((files) => {
45 this.handleInput(function() {
46 this.delegate?.inputControllerWillAttachFiles()
47 this.responder?.insertFiles(files)
48 return this.requestRender()
49 })
50 })
51 }
52
53 // Private
54

Callers 3

dropMethod · 0.45
pasteMethod · 0.45
dropMethod · 0.45

Calls 4

handleInputMethod · 0.95
requestRenderMethod · 0.95
insertFilesMethod · 0.45

Tested by

no test coverage detected