ar90n / serverless-s3-local

Serverless s3 local plugin.
MIT License
213 stars 70 forks source link

Browse file from browser #341

Open LTFENG opened 3 years ago

LTFENG commented 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" } }

Here is the screenshot from browser Screenshot from 2021-08-07 21-05-23 (1)

ar90n commented 3 years ago

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.

livingforjesus commented 1 year ago

It works for me