From 9d6a9435032b250078aa4120511c303d33ca3e41 Mon Sep 17 00:00:00 2001 From: narawat Date: Fri, 28 Aug 2026 14:34:55 +0700 Subject: [PATCH] update --- src/garageS3.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/garageS3.jl b/src/garageS3.jl index d7c0e01..8b828e3 100644 --- a/src/garageS3.jl +++ b/src/garageS3.jl @@ -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