Michael,
You do not need take care the temp files.
Temp file means the uploaded data & info of a file. it's owned by uploader , not your application.
You do not need care what's the filename and why the name ends with '.resx'
What you need to do is , in some event handler , move the file to some where you want .
Try to use the properties/methods of the item/args .
Please check the advanced sample for more. the Ajax-based-File-storage.aspx shall be fit for you.
--
by the way , you need set TempDirectory every time the page loads.
Regards,
Terry