def upload_comment(self, file, **kwargs):
response = Uploader(<EOL>self._requester,<EOL>'<STR_LIT>'.format(<EOL>self.course_id,<EOL>self.assignment_id,<EOL>self.user_id<EOL>),<EOL>file,<EOL>**kwargs<EOL>).start()<EOL>if response[<NUM_LIT:0>]:<EOL><INDENT>self.edit(<EOL>comment={<EOL>'<STR_LIT>': [response[<NUM_LIT:1>]['<STR_LIT:id>']]<EOL>}<EOL>)<EOL><DEDENT>return response<EOL>
Upload a file to attach to this submission as a comment.

:calls: `POST \
/api/v1/courses/:course_id/assignments/:assignment_id/submissions/:user_id/comments/files \
<https://canvas.instructure.com/doc/api/submission_comments.html#method.submission_comments_api.create_file>`_

:param file: The file or path of the file to upload.
:type file: file or str
:returns: True if the file uploaded successfully, False otherwise, \
    and the JSON response from the API.
:rtype: tuple