gen temp upload path in method