Add API upload view.
Add tests for API upload view.