Skip to content

Conversation

@w1r0x
Copy link
Contributor

@w1r0x w1r0x commented Aug 23, 2018

There is a problem with filename when uploading files

When you trying to save file through Riot app it saving it like this (without correct filename):
image

PR fix this issue by passing filename when uploading file


def media_upload(self, content, content_type):
def media_upload(self, content, content_type, filename=None):
query_params = dict()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

query_params = {} is the preferred way of doing this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Fixed.

@Zil0
Copy link
Contributor

Zil0 commented Aug 23, 2018

Thanks, LGTM if not for the review comment :)

@non-Jedi
Copy link
Collaborator

non-Jedi commented Sep 2, 2018

LGTM once you signoff per Contributing.rst. Thanks!

Signed-off-by: Denis Ryabyy <vv1r0x@gmail.com>
@w1r0x
Copy link
Contributor Author

w1r0x commented Sep 3, 2018

Changes done.

@non-Jedi non-Jedi merged commit 8efb34c into matrix-org:master Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants