Add temp file in resource directory