Creating file upload functionality

Anudha Mittal
Sep 3, 2024

--

One alternative:

  1. set up web server to listen on port X (config 1)
  2. set a max body request on web server (config 2)
  3. set up python http.server listener on port X (config 3)
  4. start a tmux session
  5. run python http server in the tmux session to serve forever
  6. go to site address and check functionality is working
  7. link site address to site map and track site structure

Security

  1. isolate downloaded files
  2. auto-remove any symlink files (although creates a race condition → order 2 security)

Improve

  1. set a client side check on file size using javascript

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response