middleman-s3_sync icon indicating copy to clipboard operation
middleman-s3_sync copied to clipboard

Local file names containing spaces exposed with + on S3

Open bmedici opened this issue 5 years ago • 0 comments

When I put a file named "source/The File.pdf" in my local source directory, it is built by middleman and then pushed to s3 but any link pointing to it breaks. In fact, the file is seen as "source/The+File.pdf" inside the S3 bucket, and only working with a link like href="source/The+File.pdf".

How should I configure s3_sync to force S3 to used spaces instead of pluses, but I guess s3 is working this way and it's not possible ? How should I tell middleman to anticipate a link to a name with pluses like S3 will transform it ?

Thanks for your tips.

bmedici avatar Jul 01 '19 12:07 bmedici