@cached_property<EOL><INDENT>def can_upload(self):<DEDENT>
dirbase = self.app.config["<STR_LIT>"]<EOL>return dirbase and check_base(self.path, dirbase)<EOL>
Get if a file can be uploaded to path (if directory path is under app's
`directory_upload` config property).

:returns: True if a file can be upload to directory, False otherwise
:rtype: bool