I would think it is good practice to let all properties be able to be set by the incoming message, but that is not always the case.
You could create a subflow, with the switch
node and 2+ file in
nodes from my example that would handle the task though.
This should handle most files:
[{"id":"f59e3fa306dac4d1","type":"subflow","name":"Auto File In","info":"","category":"","in":[{"x":80,"y":120,"wires":[{"id":"c9d33f11764714ae"}]}],"out":[{"x":520,"y":120,"wires":[{"id":"94949fd7249f3f39","port":0},{"id":"4e9ae86fc66fe2bf","port":0}]}],"env":[],"meta":{},"color":"#DDAA99"},{"id":"c9d33f11764714ae","type":"switch","z":"f59e3fa306dac4d1","name":"","property":"filename","propertyType":"msg","rules":[{"t":"cont","v":".htm","vt":"str"},{"t":"cont","v":".js","vt":"str"},{"t":"cont","v":".css","vt":"str"},{"t":"cont","v":".php","vt":"str"},{"t":"cont","v":".txt","vt":"str"},{"t":"cont","v":".png","vt":"str"},{"t":"cont","v":".jpg","vt":"str"},{"t":"cont","v":".jpeg","vt":"str"},{"t":"cont","v":".bmp","vt":"str"},{"t":"cont","v":".gif","vt":"str"},{"t":"cont","v":".tif","vt":"str"},{"t":"cont","v":".raw","vt":"str"}],"checkall":"true","repair":false,"outputs":12,"x":190,"y":120,"wires":[["94949fd7249f3f39"],["94949fd7249f3f39"],["94949fd7249f3f39"],["94949fd7249f3f39"],["94949fd7249f3f39"],["4e9ae86fc66fe2bf"],["4e9ae86fc66fe2bf"],["4e9ae86fc66fe2bf"],["4e9ae86fc66fe2bf"],["4e9ae86fc66fe2bf"],["4e9ae86fc66fe2bf"],["4e9ae86fc66fe2bf"]]},{"id":"94949fd7249f3f39","type":"file in","z":"f59e3fa306dac4d1","name":"output text","filename":"","format":"utf8","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":370,"y":80,"wires":[[]]},{"id":"4e9ae86fc66fe2bf","type":"file in","z":"f59e3fa306dac4d1","name":"output buffer","filename":"","format":"","chunk":false,"sendError":false,"encoding":"none","allProps":false,"x":370,"y":160,"wires":[[]]},{"id":"b369c52d22fe8e01","type":"subflow:f59e3fa306dac4d1","z":"10aa4c3ab6ad18a1","name":"","x":530,"y":380,"wires":[[]]}]