You need to add an auto-tagging rule:
Tools > Import... > Configure Auto-import
and select the folder and Edit. At the bottom, there is Apply the tags (optional). This is where you add a rule for Filename, Filename (path) or Filename (name) depending upon what you want.
It would be best to test the rule in a file list view expression column first to see that it does what you expect.