add put method with File as parameter
Merge pull request #175 from fengxx/dev

add put method with File as parameter