You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,7 @@
26
26
*[`HTTP Only` / `SameSite`](#http-only--samesite)
27
27
*[Reading list](#reading-list)
28
28
-[Example List API](#example-list-api)
29
+
-[File uploads](#file-uploads)
29
30
-[Helpful commands for local development without docker-compose](#helpful-commands-for-local-development-without-docker-compose)
30
31
-[Helpful commands for local development with docker-compose](#helpful-commands-for-local-development-with-docker-compose)
31
32
-[Deployment](#deployment)
@@ -229,6 +230,25 @@ Example data structure:
229
230
}
230
231
```
231
232
233
+
## File uploads
234
+
235
+
Following this article - <https://www.hacksoft.io/blog/direct-to-s3-file-upload-with-django> - there's a rich file-upload implementation in the Django Styleguide Example.
236
+
237
+
Everything is located in the `files` app.
238
+
239
+
Configuration wise, everything is located in [`config/settings/files_and_storages.py`](config/settings/files_and_storages.py)
240
+
241
+
Additionally, you can check the available options in [`.env.example`](.env.example)
242
+
243
+
Currently, the following is supported:
244
+
245
+
1. Standard local file upload.
246
+
1. Standard S3 file upload.
247
+
1. Using CloudFront as CDN.
248
+
1. The so-called "direct" upload that can work both locally and with S3 (for more context, [check the article](https://www.hacksoft.io/blog/direct-to-s3-file-upload-with-django))
249
+
250
+
Feel free to use this as the basis of your file upload needs.
251
+
232
252
## Helpful commands for local development without docker-compose
0 commit comments