diff --git a/src/components/ChatForm/ChatForm.tsx b/src/components/ChatForm/ChatForm.tsx index 9a22c73a..038ba478 100644 --- a/src/components/ChatForm/ChatForm.tsx +++ b/src/components/ChatForm/ChatForm.tsx @@ -76,6 +76,8 @@ export const ChatForm: React.FC = ({ const { processAndInsertImages } = useAttachedImages(); const handlePastingFile = useCallback( (event: React.ClipboardEvent) => { + console.log("handlePasting"); + console.log(event); const files: File[] = []; const items = event.clipboardData.items; for (const item of items) { @@ -84,6 +86,7 @@ export const ChatForm: React.FC = ({ file && files.push(file); } } + console.log({ files }); if (files.length > 0) { event.preventDefault(); processAndInsertImages(files); diff --git a/src/hooks/useAttachedImages.ts b/src/hooks/useAttachedImages.ts index 9623def3..ec4637a0 100644 --- a/src/hooks/useAttachedImages.ts +++ b/src/hooks/useAttachedImages.ts @@ -80,7 +80,7 @@ async function processImages( content: scaledImage, type: file.type, }; - + console.log({ fileForChat }); onSuccess(fileForChat); } catch (error) { if (error === "abort") {