Adding options to specify `region` and `endpoint`

Fix for error - `"Unable to initiate stream upload [Invalid upload ID"` when the bucket is present in a region other than `us-standard`.