From d74635c47a8637521fa2386d68024a8d23fda891 Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 28 Aug 2026 18:33:21 +0700 Subject: [PATCH] update --- src/garageS3.jl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/garageS3.jl b/src/garageS3.jl index 8b828e3..3e5d17f 100644 --- a/src/garageS3.jl +++ b/src/garageS3.jl @@ -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