Python: File storage

This documentation is part of the Advanced usages guide. View the full guide here: Going further with your Python deployments.

👋 Welcome to the Stackhero documentation!

Stackhero offers a ready-to-use Python cloud solution that provides a host of benefits, including:

  • Deploy your application in seconds with a simple git push.
  • Use your own domain name and benefit from the automatic configuration of HTTPS certificates for enhanced security.
  • Enjoy peace of mind with automatic backups, one-click updates, and straightforward, transparent, and predictable pricing.
  • Get optimal performance and robust security thanks to a private and dedicated VM.

Save time and simplify your life: it only takes 5 minutes to try Stackhero's Python cloud hosting solution!

For storing files such as user photos or documents, it is generally best to use an object storage solution.

Object storage allows you to share files across multiple services or instances and separates your storage from your code, following best practices.

We recommend MinIO, a fast and powerful solution compatible with the Amazon S3 protocol.

If you prefer local file storage, you can use the persistent storage provided with your Python instance located at /persistent/storage/. However, this approach is not recommended in most cases.

WARNING: Never store data outside the /persistent/storage/ folder!

Storing data outside this folder can lead to data loss when your instance is rebooted, updated, or when you push new code.