Skip to content

Downloading a file with TransferUtility fails if path contains special characters #2470

Discussion options

You must be logged in to vote

Hi @olesmartyniuk,

Good morning.

I'm curious if you are able to create bucket name with special characters from AWS Console. I tried creating bucket with name TestBucket_1234567890£ and it gave me error Bucket name must not contain uppercase characters Bucket name contains invalid characters: _, £.

I tried creating bucket with this name since you are specifying LongFolder_1234567890£ in BucketName property.

Using your scenario, I was able to create LongFolder_1234567890£ folder though and then uploaded a file to the folder. Then using the below code (used AWSSDK.S3 version 3.7.101.7) downloads the file successfully:

using Amazon;
using Amazon.Runtime;
using Amazon.S3;
using Amazon.S3.Tra…

Replies: 2 comments 1 reply

Comment options

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

Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. s3
2 participants
Converted from issue

This discussion was converted from issue #2469 on November 02, 2022 17:32.