Skip to content

Commit f6844f2

Browse files
authored
Merge pull request #1452 from GetStream/khushal87-fix-image-uploads-issue
fix: image uploads issue in iOS devices
2 parents c3a6286 + df3d048 commit f6844f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/src/contexts/messageInputContext/MessageInputContext.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ export const MessageInputProvider = <
967967
response = await value.doImageUploadRequest(file, channel);
968968
} else if (compressedUri && channel) {
969969
if (value.sendImageAsync) {
970-
channel.sendImage(compressedUri, undefined, contentType).then((res) => {
970+
channel.sendImage(compressedUri, file.filename, contentType).then((res) => {
971971
if (asyncIds.includes(id)) {
972972
// Evaluates to true if user hit send before image successfully uploaded
973973
setAsyncUploads((prevAsyncUploads) => {
@@ -986,7 +986,7 @@ export const MessageInputProvider = <
986986
}
987987
});
988988
} else {
989-
response = await channel.sendImage(compressedUri, undefined, contentType);
989+
response = await channel.sendImage(compressedUri, file.filename, contentType);
990990
}
991991
}
992992

0 commit comments

Comments
 (0)