implement more file-related api requests
Merge pull request #266 from Chilledheart/backport-5

implement more file-related api requests