Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix auth header and filename=undefined #659

Merged
merged 3 commits into from
Jun 18, 2018
Merged

fix auth header and filename=undefined #659

merged 3 commits into from
Jun 18, 2018

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented Jun 15, 2018

  • fix one instance where useAuthorizationHeader was ignored
  • fix filename=undefined on e2ee uploads because name || file.name = undefined

src/base-apis.js Outdated
@@ -1071,6 +1071,10 @@ MatrixBaseApis.prototype.searchUserDirectory = function(opts) {
* @param {string=} opts.name Name to give the file on the server. Defaults
* to <tt>file.name</tt>.
*
* @param {boolean=} opts.omitFilename if true will not send the filename,
* e.g for encrypted file uploads where filename leaks are undesirable.
* Defaults to false.
Copy link
Member

Choose a reason for hiding this comment

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

I'm going to bang my, "positive arguments" drum again, ie. if (includeFilename) vs if (!omitFilename)

Copy link
Member Author

Choose a reason for hiding this comment

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

But then it's a breaking change unless you mean to default it to true

Copy link
Member

Choose a reason for hiding this comment

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

yep, suggesting defaulting to true

Copy link
Member Author

Choose a reason for hiding this comment

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

changed that for you :)

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

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

Thanks!

@dbkr dbkr merged commit 76feabe into develop Jun 18, 2018
@t3chguy t3chguy deleted the t3chguy/media_fixes branch March 1, 2021 10:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants