[enh] Add 'putFile' method in order to upload files via PUT HTTP request
[test] Add putFile tests
fix tests