API for file upload. #116