mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-11-23 04:30:19 +01:00
Fix Typo's
This commit is contained in:
parent
38996c9c7f
commit
fdca501681
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
- 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)_
|
||||
|
||||
### Creating Bucket and Scope
|
||||
|
@ -179,8 +179,8 @@ transfer.sh endpoint. For enhanced security its recommended to provide both the
|
|||
Example:
|
||||
```
|
||||
export STORJ_BUCKET=transfersh
|
||||
export STORJ_SCOPE=<SCOPE>
|
||||
transfer.sh --provider storj (--storj-skip-peer-ca)
|
||||
export STORJ_ACCESS=<SCOPE>
|
||||
transfer.sh --provider storj
|
||||
```
|
||||
|
||||
## Google Drive Usage
|
||||
|
|
|
@ -671,7 +671,7 @@ func (s *StorjStorage) Put(token string, filename string, reader io.Reader, cont
|
|||
_ = writer.Abort()
|
||||
return err
|
||||
}
|
||||
err = writer.SetCustomMetadata(ctx, uplink.CustomMetadata{"ContentType": contentType})
|
||||
err = writer.SetCustomMetadata(ctx, uplink.CustomMetadata{"contentType": contentType})
|
||||
if err != nil {
|
||||
//Ignoring the error to return the one that occurred first, but try to clean up.
|
||||
_ = writer.Abort()
|
||||
|
|
Loading…
Reference in a new issue