I have an endpoint to upload files. I would like to have different file size limits depending on the file type. Images size limit =< .5 MB and PDF size limit =< 2MB.
The limits.fileSize options only allows for one value, and I can't do it in the fileFilter property either... So how could I do it?