Closed code-by closed 3 years ago
I am having the same use case. Did you find a solution? Currently I do this via the req object in the route which handles the file.
+1
You could use the metadata function that you have in your example.
Happy to consider a specific function if someone makes a clear API proposal.
Closing since this is quite old...
I have following for upload files into S3
It is possible to make some kind of function for each single uploading file (to write some information about file into DB before multer begin uploading next file from
array('files', 5)
) (for example, if writing data into DB failed multer need to abort uploading rest of files) or for this I need upload each file separately?