Fixed missing upload response from the API

Found problems regarding uploading to the API, and retrieving URL
response from the API.