# Can files and folders in the public folder be uploaded to S3 as is (manually)?

**URL:** <https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919>\
**Category:** support\
**Created:** [August 10, 2022, 12:21am UTC](https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919 "2022-08-10T00:21:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sel](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Sel](https://discourse.gohugo.io/u/Sel)\
**Post date:** [August 10, 2022, 12:21am UTC](https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919/1 "2022-08-10T00:21:56Z")

</div>

Hi,

After doing the command ‘Hugo’, I get a public folder with the following content. Can I just upload these to S3 through AWS console?

[folders] categories,css,english,french,images,js,plugins,tags  
[files].htaccess,404.html,index.html,index.xml,sitemap.xml

---

<div class="post-metadata">

**Author:** ![cshoredaniel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/cshoredaniel/32/19684_2.png) [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Post date:** [August 10, 2022, 7:21am UTC](https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919/2 "2022-08-10T07:21:14Z")

</div>

I think bep has some s3 deploy thing, but I keep forgetting to check it out. See:

> **[GitHub - bep/s3deploy: A simple tool to deploy static websites to Amazon S3...](https://github.com/bep/s3deploy)**
>
> A simple tool to deploy static websites to Amazon S3 and CloudFront with Gzip and custom headers support (e.g. "Cache-Control") - GitHub - bep/s3deploy: A simple tool to deploy static web...

Also [Rclone](https://rclone.org) will copy the files (but doesn’t have bep’s extra magic).

See also:

> **[Deployment with Rclone](https://gohugo.io/hosting-and-deployment/deployment-with-rclone/)**
>
> If you have access to your web host with SFTP/FTP/SSH/HTTP(DAV), you can use rclone to incrementally deploy your entire Hugo website.

Only using the S3 backend instead of SFTP (see the [Rclone docs for S3](https://rclone.org/s3/)).

HTH

---

<div class="post-metadata">

**Author:** ![Sel](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Sel](https://discourse.gohugo.io/u/Sel)\
**Post date:** [August 10, 2022, 1:43pm UTC](https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919/3 "2022-08-10T13:43:51Z")

</div>

@cshoredaniel, thank you! I will explore what you have sent!

---

<div class="post-metadata">

**Author:** ![frjo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/frjo/32/18626_2.png) [@frjo](https://discourse.gohugo.io/u/frjo)\
**Post date:** [August 12, 2022, 12:23pm UTC](https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919/4 "2022-08-12T12:23:52Z")

</div>

> [@Sel](#):
>
> After doing the command ‘Hugo’, I get a public folder with the following content. Can I just upload these to S3 through AWS console?

Yes, no problem. You can upload them to any web host that can serve HTML.

Hugo has a built in command to upload to some cloud services, including S3.

> **[Hugo Deploy](https://gohugo.io/hosting-and-deployment/hugo-deploy/)**
>
> Upload your site to GCS, S3, or Azure

For S3, take a look here to find out how to set up S3 for web hosting.

> **[Hosting a static website using Amazon S3 - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/userguide/WebsiteHosting.html)**
>
> Host a static website on Amazon S3 by configuring your bucket for website hosting and then uploading your content to the bucket.

---

<div class="post-metadata">

**Author:** ![Sel](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Sel](https://discourse.gohugo.io/u/Sel)\
**Post date:** [August 12, 2022, 1:13pm UTC](https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919/5 "2022-08-12T13:13:49Z")

</div>

Got it, thank you!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [August 14, 2022, 1:14pm UTC](https://discourse.gohugo.io/t/can-files-and-folders-in-the-public-folder-be-uploaded-to-s3-as-is-manually/39919/6 "2022-08-14T13:14:26Z")

</div>

Closed on August 14, 2022, 1:14pm UTC

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
