MCPcopy
hub / github.com/mudler/LocalAI / readInputImage

Function readInputImage

core/http/static/chat.js:1088–1094  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1086}
1087
1088function readInputImage() {
1089 if (!this.files || !this.files.length) return;
1090
1091 Array.from(this.files).forEach(file => {
1092 readInputImageFile(file);
1093 });
1094}
1095
1096function readInputImageFile(file) {
1097 const FR = new FileReader();

Callers

nothing calls this directly

Calls 3

readInputImageFileFunction · 0.85
fromMethod · 0.80
forEachMethod · 0.45

Tested by

no test coverage detected