-
-
Notifications
You must be signed in to change notification settings - Fork 601
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
Conversation
src/base-apis.js
Outdated
* to 'default'. | ||
* | ||
* @param {string=} opts.type Content-type for the upload. Defaults to | ||
* <tt>applicaton/octet-stream</tt>. |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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'. |
There was a problem hiding this comment.
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?
It looks like some changes were made and another review is needed. Requesting a fresh review. |
This is blocked on spec. |
Aha, thanks for the clarification. For future readers, there is a spec proposal waiting for review. |
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. |
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