-
Notifications
You must be signed in to change notification settings - Fork 6
Route: Storage
I'm Not A Bot #Left_TG edited this page Apr 16, 2022
·
4 revisions
Store files in the api's server
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
inpath_to
variable- Use convertlive when changing the
limit
varaible
If you are deploying this on Heroku, your files will be deleted after a restart (Read why?)