add upload offline file runtime option

Signed-off-by: xiehuc <xiehuc@gmail.com>