In the previous article, we used PostgreSQL’s built-in full-text search feature to enable post searching in our forum.

Next, we’ll continue to enrich our site’s functionality by adding support for uploading images in posts.

The process for uploading images is as follows:

  1. The user selects an image file and submits it.
  2. After FastAPI receives the data, it forwards the image file to a dedicated object storage service, such as S3.

Why not store it directly on the server?

While this is convenient, it has several problems:

  • You need to maintain persistent storage for the images. This means ensuring that image files are not lost every time you deploy the application.
  • Serving images from the s…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help