Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Browse file from browser #341

Open
LTFENG opened this issue Aug 7, 2021 · 2 comments
Open

Browse file from browser #341

LTFENG opened this issue Aug 7, 2021 · 2 comments

Comments

@LTFENG
Copy link

LTFENG commented Aug 7, 2021

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
Copy link
Owner

ar90n commented Aug 9, 2021

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
Copy link

It works for me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants