multer
.upload = multer({ dest: 'files/' })
app.post('/files', upload.array('userFiles'), (req, res) => ...
req.files
After you can successfully upload the file, you need to pass each file into Tesseract Library for text analysis. Since this will take time for each image, response status should be 202
and you should create and return a job url that the user can visit to view the status of the job.
You would need to provide an API /api/job/:jobid
to lookup the status of each processed file.
Sample Tesseract Code
const Tesseract = require('tesseract.js')
Tesseract.recognize( ..path to image file... , 'eng', { logger: console.log }).then( ... callback ...)
If your application experiences crashes during the text recognition, you may have to delete the generated file eng.traineddata
.