copy file from temp upload