Implementation of upload file to local repo APIs. #116