Updating the uploader to handle trailing slashes.