Skip to content

TransferUtility: I can upload/download to the root, but I can't do the same to a folder. Ver 3.7.305.20 #3168

Discussion options

You must be logged in to vote

Newer versions of the SDK (after version 3.7.100) do not allow the bucket name to contain a slash (i.e. part of the object key). See this comment for more context: #2622 (comment)

As you mentioned, the solution to this problem is using instead:

var destFileName = "mydir/client-test-5.txt"; 
utility.Upload(sourceFile, bucketName, destFileName);

This will upload the file to s3://bucketName/mydir/client-test-5.txt successfully.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dscpinheiro
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