We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32461fe + 5ca1a25 commit ccf5ec5Copy full SHA for ccf5ec5
src/contexts/messageInputContext/MessageInputContext.tsx
@@ -612,7 +612,14 @@ export const MessageInputProvider = <
612
const mimeType = lookup(doc.name);
613
614
if (mimeType && mimeType?.startsWith('image/')) {
615
- uploadNewImage(doc);
+ /**
616
+ * TODO: The current tight coupling of images to the image
617
+ * picker does not allow images picked from the file picker
618
+ * to be rendered in a preview via the uploadNewImage call.
619
+ * This should be updated alongside allowing image a file
620
+ * uploads together.
621
+ */
622
+ uploadNewFile(doc);
623
} else {
624
uploadNewFile(doc);
625
}
0 commit comments