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 #3015] Add drag drop urls room view, add resolve_url api #652

Closed

Conversation

oivoodoo
Copy link

@oivoodoo oivoodoo commented May 30, 2018

Hi everyone!

As part of this issue(element-hq/element-web#3015) I were working on resolve api(matrix-org/synapse#2751) in synapse project and now it would require to integrate together.

By using resolve api as part of media api of synapse project it will solve CORS requests issue.

pull requests:

Signed-off-by: Alexandr Korsak alex.korsak@gmail.com

src/base-apis.js Outdated
* to 'default'.
*
* @param {string=} opts.type Content-type for the upload. Defaults to
* <tt>applicaton/octet-stream</tt>.
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't implement usage of this parameter

src/http-api.js Outdated
}
};
let url = this.opts.baseUrl + "/_matrix/media/v1/resolve_url";
url += "?access_token=" + encodeURIComponent(this.opts.accessToken);
Copy link
Contributor

Choose a reason for hiding this comment

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

if this.useAuthorizationHeader is true we send the access token via "Authorization Bearer <auth_token" instead of query param.

src/base-apis.js Outdated
* @param {object} opts options object
*
* @param {string=} opts.name Name to give the file on the server. Defaults
* to 'default'.
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this param used?

@t3chguy t3chguy changed the base branch from master to develop July 27, 2018 09:10
@jryans
Copy link
Collaborator

jryans commented Dec 18, 2018

It looks like some changes were made and another review is needed. Requesting a fresh review.

@jryans jryans requested a review from a team December 18, 2018 00:50
@turt2live turt2live removed the request for review from a team December 18, 2018 00:51
@turt2live
Copy link
Member

This is blocked on spec.

@jryans
Copy link
Collaborator

jryans commented Dec 18, 2018

Aha, thanks for the clarification. For future readers, there is a spec proposal waiting for review.

@turt2live
Copy link
Member

With the spec proposal in review and the react-sdk side closed, plus the merge conflicts here, I'm going to go ahead and close this. I recommend pushing through on the spec side (which seems to have outstanding comments) and getting some form of consensus before opening a PR.

@turt2live turt2live closed this Nov 25, 2019
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.

4 participants