upload file in folder in Spaces API

I'm developing a website where users can upload their some document, and I wanted that all documents should be upload in Spaces API (Digital Ocean) and for that i'm using GIT https://github.com/SociallyDev/Spaces-API.

I was trying to upload in folder named "UPLOADS" but document get uploaded in root directory instead of inside folder "UPLOADS".