fix routing to tempfiles in files func
Merge pull request #133 from kwalker3690/master

(fix) routing to tempfiles in files func