-
Notifications
You must be signed in to change notification settings - Fork 76
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: add default contentType as multipart/form-data in sendFile #1202
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vishalnarkhede
requested review from
santhoshvai,
khushal87,
szuperaz,
oliverlaz,
arnautov-anton and
MartinCupela
as code owners
November 29, 2023 13:08
vishalnarkhede
commented
Nov 29, 2023
@@ -1034,7 +1034,7 @@ export class StreamChat<StreamChatGenerics extends ExtendableGenerics = DefaultG | |||
contentType?: string, | |||
user?: UserResponse<StreamChatGenerics>, | |||
) { | |||
const data = addFileToFormData(uri, name, contentType); | |||
const data = addFileToFormData(uri, name, contentType || 'multipart/form-data'); |
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.
We already have this default value within react and RN SDK. But adding the same to js client, for the cases where customer uses sendFile endpoint directly.
khushal87
previously approved these changes
Nov 29, 2023
santhoshvai
previously approved these changes
Nov 29, 2023
Size Change: +75 B (0%) Total Size: 327 kB
|
santhoshvai
changed the title
fix: add defalut contentType as multipart/form-data in sendFile
fix: add default contentType as multipart/form-data in sendFile
Nov 29, 2023
vishalnarkhede
dismissed stale reviews from santhoshvai and khushal87
via
November 29, 2023 13:20
3564a32
vishalnarkhede
force-pushed
the
fix/default-content-type
branch
from
November 29, 2023 13:25
3564a32
to
0991a77
Compare
santhoshvai
approved these changes
Nov 29, 2023
Merged
rchl
added a commit
to rchl/stream-chat-js
that referenced
this pull request
Nov 29, 2023
* master: (44 commits) chore: release v8.14.4 (GetStream#1203) fix: add default contentType as multipart/form-data in sendFile (GetStream#1202) chore: release v8.14.3 (GetStream#1200) fix: use postForm instead of post for sending files (GetStream#1199) chore: release v8.14.2 (GetStream#1197) fix: reload channel state if frozen flag changed (GetStream#1196) chore(release): v8.14.1 (GetStream#1195) Update user reference in channel read data (GetStream#1194) chore(release): v8.14.0 (GetStream#1193) feat: axios upgrade to v1 (GetStream#1192) Revert "fix: queue channel WS events until the channel is initialized" (GetStream#1189) chore(release): v8.13.1 (GetStream#1188) fix: undefined values in query params (GetStream#1187) chore(release): v8.13.0 (GetStream#1186) feat: support for SNS (GetStream#1185) chore: release v8.12.4 (GetStream#1184) fix: evaluate channel.lastRead when channel is not initialized (GetStream#1183) chore(release): v8.12.3 (GetStream#1182) fix: queue channel WS events until the channel is initialized (GetStream#1179) chore: release v8.12.2 (GetStream#1181) ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CLA
Description of the changes, What, Why and How?
Changelog