# S3 upload: Bypass Discourse local storage

**URL:** https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275
**Category:** Support
**Created:** [7월 13, 2018, 2:23오후 UTC](https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275 "2018-07-13T14:23:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![amoncadot](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@amoncadot](https://meta.discourse.org/u/amoncadot)
#### Post date: [7월 13, 2018, 2:23오후 UTC](https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275/1 "2018-07-13T14:23:47Z")

</div>

Hello,

We would like our users to upload files (images specifically but hopefully video later), however since we are running Discourse using Docker, there’s no point in Discourse storing the files locally before the files are sent to S3.

Is there anyway we can bypass Discourse’s local storage and just fire the images off to S3 straight away when someone uploads a file?

Thanks,  
Amoncadot

---

<div class="post-metadata">

### Author: ![schleifer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schleifer/32/86416_2.png) [@schleifer](https://meta.discourse.org/u/schleifer)
#### Post date: [7월 13, 2018, 3:26오후 UTC](https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275/2 "2018-07-13T15:26:39Z")

</div>

> [@amoncadot](#):
>
> Is there anyway we can bypass Discourse’s local storage and just fire the images off to S3 straight away when someone uploads a file?

No. The upload handling would have to be significantly reworked to go straight to S3.

---

<div class="post-metadata">

### Author: ![amoncadot](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@amoncadot](https://meta.discourse.org/u/amoncadot)
#### Post date: [8월 7, 2018, 1:16오후 UTC](https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275/3 "2018-08-07T13:16:36Z")

</div>

Hi Andrew,

Great, thanks for your reply!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [5월 13, 2019, 5:13오전 UTC](https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275/6 "2019-05-13T05:13:00Z")

</div>

I would like us to get to direct s3 uploads using some sort of ticket system. The big problem though is that this would only be useful for attachments, it is critical all images go via the app.

For images we always do a bit of magic first, ensuring giant PNGs turn into JPEGS and such.

I don’t see us working on this in the next few months at least.

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [11월 30, 2021, 5:08오후 UTC](https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275/7 "2021-11-30T17:08:31Z")

</div>

이것은 이제 진행 중인 프로젝트입니다:

> [@디스코urs 파일 업로드의 새로운 시대](https://meta.discourse.org/t/a-new-era-for-file-uploads-in-discourse/210469?u=supermathie):
>
> You may have noticed over the past several months many commits related to uploads in Discourse core. This has been part of an overall effort within core to replace usages of [jQuery file upload](https://github.com/blueimp/jQuery-File-Upload) from our codebase, as part of an even broader overall effort to replace usages of jQuery itself from our codebase. jQuery file uploader is a very old project, and has been part of Discourse core since almost the beginning. I think I’ve used it for my whole career in other projects as well. But it’s time to…

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [12월 1, 2021, 5:09오후 UTC](https://meta.discourse.org/t/s3-upload-bypass-discourse-local-storage/92275/8 "2021-12-01T17:09:08Z")

</div>

이 주제는 마지막 답변 후 24시간이 지나면 자동으로 닫힙니다. 더 이상 새 답변을 게시할 수 없습니다.
