'How would I set size limits to buckets on minio?

I'm using minio on a VPS to host an S3 server. I'm making a cloud storage website as a personal project. I want every user to have a set amount of space, each user would have their own bucket. I already have most of the stuff set up, all I need is for the user to get a warning if their upload is over the capacity limit and cancel the file transfer.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source