@classmethod<EOL><INDENT>def upload(cls, file_obj, store=None):<DEDENT>
if store is None:<EOL><INDENT>store = '<STR_LIT>'<EOL><DEDENT>elif store:<EOL><INDENT>store = '<STR_LIT:1>'<EOL><DEDENT>else:<EOL><INDENT>store = '<STR_LIT:0>'<EOL><DEDENT>data = {<EOL>'<STR_LIT>': store,<EOL>}<EOL>files = uploading_request('<STR_LIT:POST>', '<STR_LIT>', data=data,<EOL>files={'<STR_LIT:file>': file_obj})<EOL>file_ = cls(files['<STR_LIT:file>'])<EOL>return file_<EOL>
Uploads a file and returns ``File`` instance.

        Args:
            - file_obj: file object to upload to
            - store (Optional[bool]): Should the file be automatically stored
                upon upload. Defaults to None.
                - False - do not store file
                - True - store file (can result in error if autostore
                               is disabled for project)
                - None - use project settings

        Returns:
            ``File`` instance