Skip to content

Route: Storage

I'm Not A Bot #Left_TG edited this page Apr 16, 2022 · 4 revisions

Storage route

Store files in the api's server

Configuration

You can find the config file at api/config/storageConf.py. It'll be something like this,

# Config file of: "routes/storage.py"

# Path where the files should be stored
path_to = "Downloads"

# ID length, which will be passed secrets.token_urlsafe function
length = 16

# Size limit in bytes (Default to 500mb)
limit = 524288000

Tips 💡

  • You can also use nested dirs like Somewhere/Downloads in path_to variable
  • Use convertlive when changing the limit varaible

Warning ⚠️

If you are deploying this on Heroku, your files will be deleted after a restart (Read why?)

Clone this wiki locally