Skip to content

response 404 from aws s3 for filenames with spaces #79

Answered by dekobon
cpeled asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Chen,

I did the following verifications:

# Upload file with + in it to s3
$ echo "Hello World" > "file_with_+.txt"
$ aws s3 cp "file_with_+.txt" s3://testbucket/
upload: ./file_with_+.txt to s3://testbucket/file_with_+.txt

# Upload file with space in it to s3
$ aws s3 cp "file_with space.txt" s3://testbucket/
upload: ./file_with space.txt to s3://testbucket/file_with space.txt

# Run the container in another terminal
$ docker run --env-file ./test-settings --rm -it --publish 80:80 --name nginx-s3-gateway nginx-s3-gateway

# Download uploaded file with + in it escaped properly
$ curl "http://localhost/file_with_%2B.txt"
Hello World

# Verify that we can download uploaded file with + in…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@cpeled
Comment options

Comment options

You must be logged in to vote
1 reply
@cpeled
Comment options

Answer selected by cpeled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #77 on December 13, 2022 01:12.