def _safe_object_name(self, object_name):
        extension = get_file_extension(object_name)
        file_name = os.path.splitext(object_name)[0]
        while object_name in self:
            uuid = shortuuid.uuid()
            object_name = "%s__%s.%s" % (file_name, uuid, extension)
        return object_name
Add a UUID if to a object name if it exists. To prevent overwrites
dataset/ETHPy150Open mardix/flask-cloudy/flask_cloudy.py/Storage._safe_object_name