Tricog Health Services interview question

designing of API for uploading file to server? JavaScript Concepts