add upload option
Merge pull request #1 from rtsai123/upload_file_opt

add upload option