How/where to save images #172
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K#172
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
How and where should we save images that users may want to upload?
Related Issues: #24
There are a few different ways to do it, but from what most people recommend, cloud services like S3 or R2 would be good. S3 is older and more industry standard while R2 is cheaper, better performance and is simpler.
How it works: 1. user uploads an image, 2. backend creates a key and a temporary url, 3. the key (location in cloud) is stored in db and the temporary url is given to the user for them to send the image to the bucket/cloud service (process can be automated with code).
Cloud services cost, but there are free options to start with. Is what most professionals use. Is scalable, has security controls, automatic backups and good performance.
Other options to cloud services:
I suggest using Cloudfare's R2 solution to start with or check with customer if we already have some sort of server where stuff can be stored.
What I've reviewed:
The research on where to store and how to store images.
Checks performed:
The suggested approaches and their trade offs.
If it's realistic for our current project.
Looks good, The comparison between options is clear, R2 suggested as starting point makes sense given the simpler setup and better performance.
Looks good! i will close this issue.