Update the database if a file is being uploaded in the front end (see #5137)