Skip to content

Commit

Permalink
chore: add leading /
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Mar 22, 2024
1 parent 5a924df commit 0460d84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void main() {
final key = 'Test - ${DateTime.now()}';
await Amplify.Storage.uploadData(
data: S3DataPayload.bytes('hello'.codeUnits),
path: StoragePath.fromString('public/$key'),
path: StoragePath.fromString('/public/$key'),
).result;

final getUrlResult = await Amplify.Storage.getUrl(
Expand Down

0 comments on commit 0460d84

Please sign in to comment.