Browse Source

Fix Typo's

tags/v1.2.0
stefanbenten 4 years ago
parent
commit
fdca501681
2 changed files with 4 additions and 4 deletions
  1. +3
    -3
      README.md
  2. +1
    -1
      server/storage.go

+ 3
- 3
README.md View File

@@ -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


+ 1
- 1
server/storage.go View File

@@ -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…
Cancel
Save