diff --git a/packages/web/src/javascripts/Application/WebApplication.ts b/packages/web/src/javascripts/Application/WebApplication.ts index dbc0f4ece..b98773544 100644 --- a/packages/web/src/javascripts/Application/WebApplication.ts +++ b/packages/web/src/javascripts/Application/WebApplication.ts @@ -355,7 +355,7 @@ export class WebApplication extends SNApplication implements WebApplicationInter const filesController = this.filesController const blob = getBlobFromBase64(file.data, file.mimeType) const mappedFile = new File([blob], file.name, { type: file.mimeType }) - filesController.uploadNewFile(mappedFile, true).catch(console.error) + filesController.uploadNewFile(mappedFile).catch(console.error) } async handleReceivedTextEvent({ text, title }: { text: string; title?: string | undefined }) { @@ -397,7 +397,7 @@ export class WebApplication extends SNApplication implements WebApplicationInter const file = new File([imgBlob], finalPath, { type: imgBlob.type, }) - this.filesController.uploadNewFile(file, true).catch(console.error) + this.filesController.uploadNewFile(file).catch(console.error) } catch (error) { console.error(error) } finally { diff --git a/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx b/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx index adcd6b35c..8c5b21109 100644 --- a/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx +++ b/packages/web/src/javascripts/Components/SuperEditor/Plugins/RemoteImagePlugin/RemoteImageComponent.tsx @@ -44,7 +44,7 @@ const RemoteImageComponent = ({ className, src, alt, node, format, nodeKey }: Pr const { filesController, linkingController } = application - const uploadedFile = await filesController.uploadNewFile(file, false) + const uploadedFile = await filesController.uploadNewFile(file, { showToast: false }) if (!uploadedFile) { return