Catch and return the proper error
Merge pull request #36 from Rise-Vision/fix/upload-error

Catch and return the proper error
Fix empty string handling of prefix value
Add a forward slash on folder name if necessary
Enable deletions on folders with nesting