@@ -85,17 +85,17 @@ const createFolderInput = boxId => {
85
85
return input ;
86
86
} ;
87
87
88
- const createFileInput = ( { boxId } ) => {
89
- const input = document . createElement ( "input" ) ;
90
- input . setAttribute ( "type" , "file" ) ;
91
- input . classList . add ( "btn" ) ;
92
- // input.setAttribute("accept", mimeType);
93
- input . addEventListener ( "change" , function ( ) {
94
- const data = [ ...this . files ] ;
95
- app . updateDataInDataElement ( { boxId, data } ) ;
96
- } ) ;
97
- return input ;
98
- } ;
88
+ // const createFileInput = ({ boxId }) => {
89
+ // const input = document.createElement("input");
90
+ // input.setAttribute("type", "file");
91
+ // input.classList.add("btn");
92
+ // // input.setAttribute("accept", mimeType);
93
+ // input.addEventListener("change", function() {
94
+ // const data = [...this.files];
95
+ // app.updateDataInDataElement({ boxId, data });
96
+ // });
97
+ // return input;
98
+ // };
99
99
100
100
const createFileInputNew = ( { boxId } ) => {
101
101
const btn = document . createElement ( "button" ) ;
@@ -170,7 +170,7 @@ const addContent = ({ mimeType, outputType, boxId }) => {
170
170
}
171
171
default : {
172
172
console . log ( "default for type : " + outputType ) ;
173
- const input = createFileInput ( { mimeType, boxId } ) ;
173
+ const input = createFileInputNew ( { mimeType, boxId } ) ;
174
174
content . appendChild ( input ) ;
175
175
}
176
176
}
0 commit comments