MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / onUploadFile

Function onUploadFile

packages/ui/src/views/tools/index.jsx:97–111  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

95 }
96
97 const onUploadFile = (file) => {
98 try {
99 const dialogProp = {
100 title: 'Add New Tool',
101 type: 'IMPORT',
102 cancelButtonName: 'Cancel',
103 confirmButtonName: 'Save',
104 data: JSON.parse(file)
105 }
106 setDialogProps(dialogProp)
107 setShowDialog(true)
108 } catch (e) {
109 console.error(e)
110 }
111 }
112
113 const handleFileUpload = (e) => {
114 if (!e.target.files) return

Callers 3

handleFileUploadFunction · 0.70
handleFileUploadFunction · 0.50
handleFileUploadFunction · 0.50

Calls 1

parseMethod · 0.65

Tested by

no test coverage detected