Remove unused var
Code formatting
Add method removeTrailingSlash
Add recursion to upload

Now you can upload folder and not just file