diff --git a/README.md b/README.md index ae88ded..26d5859 100644 --- a/README.md +++ b/README.md @@ -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= -transfer.sh --provider storj (--storj-skip-peer-ca) +export STORJ_ACCESS= +transfer.sh --provider storj ``` ## Google Drive Usage diff --git a/server/storage.go b/server/storage.go index 170d3d2..c25c0bf 100644 --- a/server/storage.go +++ b/server/storage.go @@ -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()