Upload.array() required field name and maxCount params. But you have given name of the file is 'file' and you are using middleware upload.array('photos',4). Try in below way it may work
upload.array('file',4)
or
upload.any();
please refer the doc: https://github.com/expressjs/multer