update
This commit is contained in:
+4
-3
@@ -21,8 +21,9 @@ storage = GeneralUtils.GarageStorage(
|
||||
)
|
||||
|
||||
# Safe to run inside concurrent HTTP handlers (e.g., Oxygen.jl, HTTP.jl)
|
||||
downloadUrl = GeneralUtils.put_file(storage, "users1.json", "{\"status\": \"active\"}")
|
||||
keys = GeneralUtils.list_files(storage)
|
||||
# use UUID as filename because GarageS3 requires unique filename for each uploaded object
|
||||
GeneralUtils.put_file(storage1, "transferjob-(GeneralUtils.uuid4snakecase())", "{\"status\": \"inactive\"}")
|
||||
key = GeneralUtils.list_files(storage)
|
||||
|
||||
println("Read back: ", data)
|
||||
println("Bucket keys: ", keys)
|
||||
@@ -33,7 +34,7 @@ curl -v \
|
||||
http://192.168.88.106:3902/users-1002.json
|
||||
|
||||
# test with API
|
||||
data = String(GeneralUtils.get_file(storage, "users-1005.json"))
|
||||
data = String(GeneralUtils.get_file(storage, key[1]))
|
||||
|
||||
# test with a browser
|
||||
https://s3-web.mydomain.com/my_bucket_name/users-1005.json
|
||||
|
||||
Reference in New Issue
Block a user