use temporary upload file instead of simple upload file