update
This commit is contained in:
+4
-1
@@ -147,7 +147,7 @@ end
|
||||
The data to upload.
|
||||
|
||||
# Return
|
||||
- `String`: The file download URL if the upload succeeds.
|
||||
- `NamedTuple{(:api, :web)}`: A tuple with `api` and `web` URLs if the upload succeeds.
|
||||
- `nothing` if the key contains slashes (upload aborted with warning).
|
||||
|
||||
# Notes
|
||||
@@ -160,7 +160,10 @@ julia> storage1 = GarageStorage("https://s3-api.yiem.cc", "GKb08015", "55114ff94
|
||||
julia> put_file1 = put_file(storage1)
|
||||
julia> downloadUrl = put_file1("test.json", "{\"status\": \"active\"}")
|
||||
Successfully uploaded: test.json
|
||||
julia> downloadUrl.api
|
||||
"https://s3-api.yiem.cc/sommpanion-s3/test.json"
|
||||
julia> downloadUrl.web
|
||||
"https://s3-web.yiem.cc/sommpanion-s3/test.json"
|
||||
```
|
||||
"""
|
||||
struct put_file
|
||||
|
||||
Reference in New Issue
Block a user