Directory is trimmed of trailing / for Dropbox cases only. Added chunked uploader.