Archived Forum Post

Index of archived forum posts

Question:

Upload files to a folder that is inside the S3 bucket?

Jan 23 '17 at 16:24

Is it possible to upload files to a folder that is inside the S3 bucket?


Accepted Answer

See this: http://docs.aws.amazon.com/AmazonS3/latest/UG/FolderOperations.html

An object named with a trailing "/" displays as a folder in the Amazon S3 console.

Therefore, the way to create a folder "xyz" is to create an object named "xyz/".


Answer

Works great:

objectName =  "/Folder/SubFolder/File.jpg" 
success = http.S3_UploadFile(localFilePath,contentType,bucketName,objectName)

Thanks,

I tried uploading files with diacritical characters (FileÅÄÖ.jpg) but I get a "is forbidden" in the LastErrorText.

I tired uploading the same with Transmit and it worked fine.

Do I need to encode the diacritical characters?


Answer

Thanks, I'm having a look..


Answer

I found the problem and made the fix. What programming language/operating system do you need for a pre-release?


Answer

Great!

I'm using Xojo.


Answer

Thanks. This is going to take some time (a day or two). The Xojo build is more difficult because it requires builds on different operating systems. I'll post here when it's ready...


Answer

Here's a new build with the fix:

http://chilkatdownload.com/prerelease/chilkat.xojo_plugin


Answer

Initial tests shows good result :-)

Can I use this prerelease plugin or should I wait for the final release?


Answer

I think the prerelease is safe to use. The final release is awaiting the completion of the JWS and JWE classes, which is unrelated to AWS S3 functionality.