

def file_allowed(self, storage, basename):
    "\n        This tells whether a file is allowed. It should return `True` if the\n        given `werkzeug.FileStorage` object can be saved with the given\n        basename, and `False` if it can't. The default implementation just\n        checks the extension, so you can override this if you want.\n\n        :param storage: The `werkzeug.FileStorage` to check.\n        :param basename: The basename it will be saved under.\n        "
    return self.extension_allowed(extension(basename))

dataset/ETHPy150Open jeffwidman/flask-uploads/flask_uploads.py UploadSet.file_allowed/original