Open LTFENG opened 3 years ago
Hi, all the experts here. I would like to know the proper way to read the images file that I had stored in the s3 local (serverless-s3-local) ?
I had installed serverless offline + serverless-s3-local inside a node docker container.
I had expose 8080 for serverless offline & 2222 for serverless-s3-local.
But the url always failed to reach,
Here are the response after uploaded success { "image_path": { "ETag": "\"e6f51292d46d1f791f0abdfb1185a97c\"", "Location": "http://localhost:2222/local-bucket/assets/images/2021-08-07/12-33-20.png", "key": "assets/images/2021-08-07/12-33-20.png", "Key": "assets/images/2021-08-07/12-33-20.png", "Bucket": "local-bucket" } }
{ "image_path": { "ETag": "\"e6f51292d46d1f791f0abdfb1185a97c\"", "Location": "http://localhost:2222/local-bucket/assets/images/2021-08-07/12-33-20.png", "key": "assets/images/2021-08-07/12-33-20.png", "Key": "assets/images/2021-08-07/12-33-20.png", "Bucket": "local-bucket" } }
Here is the screenshot from browser
Hi @LTFENG As long as I know, s3rver which is the backend of serverless-s3-local doesn't support HTTP protocol. So please use aws cli tools.
It works for me
Hi, all the experts here. I would like to know the proper way to read the images file that I had stored in the s3 local (serverless-s3-local) ?
I had installed serverless offline + serverless-s3-local inside a node docker container.
I had expose 8080 for serverless offline & 2222 for serverless-s3-local.
But the url always failed to reach,
Here are the response after uploaded success
{ "image_path": { "ETag": "\"e6f51292d46d1f791f0abdfb1185a97c\"", "Location": "http://localhost:2222/local-bucket/assets/images/2021-08-07/12-33-20.png", "key": "assets/images/2021-08-07/12-33-20.png", "Key": "assets/images/2021-08-07/12-33-20.png", "Bucket": "local-bucket" } }
Here is the screenshot from browser