Fix Typo's
This commit is contained in:
@ -159,7 +159,7 @@ To use a custom non-AWS S3 provider, you need to specify the endpoint as defined
|
|||||||
|
|
||||||
To use the Storj Network as storage provider you need to specify the following flags:
|
To use the Storj Network as storage provider you need to specify the following flags:
|
||||||
- provider `--provider storj`
|
- provider `--provider storj`
|
||||||
- storj-scope _(either via flag or environment variable STORJ_SCOPE)_
|
- storj-access _(either via flag or environment variable STORJ_ACCESS)_
|
||||||
- storj-bucket _(either via flag or environment variable STORJ_BUCKET)_
|
- storj-bucket _(either via flag or environment variable STORJ_BUCKET)_
|
||||||
|
|
||||||
### Creating Bucket and Scope
|
### Creating Bucket and Scope
|
||||||
@ -179,8 +179,8 @@ transfer.sh endpoint. For enhanced security its recommended to provide both the
|
|||||||
Example:
|
Example:
|
||||||
```
|
```
|
||||||
export STORJ_BUCKET=transfersh
|
export STORJ_BUCKET=transfersh
|
||||||
export STORJ_SCOPE=<SCOPE>
|
export STORJ_ACCESS=<SCOPE>
|
||||||
transfer.sh --provider storj (--storj-skip-peer-ca)
|
transfer.sh --provider storj
|
||||||
```
|
```
|
||||||
|
|
||||||
## Google Drive Usage
|
## Google Drive Usage
|
||||||
|
@ -671,7 +671,7 @@ func (s *StorjStorage) Put(token string, filename string, reader io.Reader, cont
|
|||||||
_ = writer.Abort()
|
_ = writer.Abort()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err = writer.SetCustomMetadata(ctx, uplink.CustomMetadata{"ContentType": contentType})
|
err = writer.SetCustomMetadata(ctx, uplink.CustomMetadata{"contentType": contentType})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
//Ignoring the error to return the one that occurred first, but try to clean up.
|
//Ignoring the error to return the one that occurred first, but try to clean up.
|
||||||
_ = writer.Abort()
|
_ = writer.Abort()
|
||||||
|
Reference in New Issue
Block a user