In the endpoints that receive files, store the latest submitted file name in their corresponding tables. For instance, the file name should be given as a file parameter (req.files.filename). When the frontend requests details regarding these endpoints, the latest filenames should be returned as well. This provides better information to the user to know what he/she submitted.
In the endpoints that receive files, store the latest submitted file name in their corresponding tables. For instance, the file name should be given as a
file
parameter (req.files.filename
). When the frontend requests details regarding these endpoints, the latest filenames should be returned as well. This provides better information to the user to know what he/she submitted.