This example shows how to use the Dropbox.filesUpload() [docs] method to upload a file.

To obtain an access token for quick testing, you can go to API Explorer click the "Get Token" button on the top right, copy the token it creates and then paste it here.