implement more file-related api requests

<del>more complete implementation requires PR #234</del>