How to save a file to a specific folder, depending on the file name

Is there a way to go to a specific DB based on the file name after uploading a specific file in bulk?
For example, files that include the name “marketing” in file names such as “YouTube Marketing” and “Instagram Marketing” are considered to be moved to the “marketing” DB.

Yes, but likely not off the upload function…instead need to run another function after upload to apply the values to the correct data type based on the values name.