# Adding files to subfolders or sub-buckets in Amazon S3

**URL:** <https://connective.celigo.com/t/adding-files-to-subfolders-or-sub-buckets-in-amazon-s3/1185>\
**Category:** Integrator.io\
**Tags:** amazon-s3, import\
**Created:** [October 5, 2021, 6:08pm UTC](https://connective.celigo.com/t/adding-files-to-subfolders-or-sub-buckets-in-amazon-s3/1185 "2021-10-05T18:08:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kathyanaqueeman](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/kathyanaqueeman/32/9122_2.png) [@kathyanaqueeman](https://connective.celigo.com/u/kathyanaqueeman)\
**Post date:** [October 5, 2021, 6:08pm UTC](https://connective.celigo.com/t/adding-files-to-subfolders-or-sub-buckets-in-amazon-s3/1185/1 "2021-10-05T18:08:18Z")

</div>

This post applies to users importing data into Amazon S3.

You can drop a file into a subfolder or sub-bucket in S3 using a forward slash in the file key.

First, select your region. Your region is the nearest Amazon S3 region to the location from where the request is being made. If not set, by default "us-east-1" is selected.

**Region:** {US East (Ohio) [us-east-2]}

Next, write your bucket name.

**Bucket name:** {S3-bucket-name}

Finally, define the folder name along with the file name, timestamp, and file extension. The timestamp can be added so the output file is always unique.

**Build file key:**

{folder\_name}/{file\_name}{{timestamp YYYY-MM-DDHHss}.{file\_extension}

Your final input should be as follows:

**Bucket name:** S3-bucket-name

**Build file key:** folder\_name/file\_name{{timestamp YYYY-MM-DDHHss}}.{file\_extension}

 ![5301043caa20740200000001-cda7f4b782444a2398c006a51befe28e.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/9/9dc3c34593ca9b6028c86637859844227c5a5529.png)
