New comment on reddit

Define "tips"

What kind of files?

Had a friend who used to run an anonymous ftp upload site, which a script cleared-out every X-many seconds (I think it was 120 – might've been 300). Basic process was:

  • go to website
  • select file to upload
  • click upload

On the backend:

  • when a file is uploaded, create a unique directory name
  • chksum the file, appending the chcksum to the filename (after the extension)
  • all files uploade within X-seconds of each other get plopped into a single directory
  • mv directory to /tmp
  • send email indicating file(s) have been uploaded, and where they are

Also on the backend:

  • delete everything in /tmp older than 7 days
  • if /tmp is >80% full, delete oldest items until <80% full

September 23, 2019 at 10:49AM
via reddit https://www.reddit.com/r/selfhosted/comments/d7v49x/looking_for_self_hosted_anonymous_tipping_solution/f17ync6?utm_source=ifttt