Skip to content

Multiple drafts when embedding images in OWA #5788

Open
@johnny-outreach

Description

@johnny-outreach

Provide required information needed to triage your issue

Your Environment

  • Platform [PC desktop, Mac, iOS, Office on the web]: Office on web
  • Host [Excel, Word, PowerPoint, etc.]: Outlook
  • Office version number: N/A
  • Operating System: Windows 11 Enterprise 24H2 build: 26100.4061
  • Browser (if using Office on the web): Microsoft Edge137.0.3296.52

Expected behavior

We currently have an Outlook add-in that is in adding base64 inline images. We expect that when inserting images, there is only 1 draft in the user's draft folder.

Current behavior

When inserting base64 inline images in Outlook Web, you will occasionally encounter multiple drafts being created (the number of drafts depends on the number of images being embedded). - This does not happen if the images are referenced/hotlinked.

I have created a GitHub repository that contains a recording demonstrating the issue which I will send an invite to the team.

Steps to reproduce

  1. Create an add-in which inserts a base64 image inline image.
  2. Compose around 20-30 emails with the add-in inserting images.
  3. After composing each email check the numbers of drafts in the draft folder to confirm if you have "multiple drafts" and encounter the issue or not.

Context

This issue is affecting a number of our customers.

Useful logs

  • Console errors
    Screenshots
    Test file (if only happens on a particular file)

Thank you for taking the time to report an issue. Our triage team will respond to you in less than 72 hours. Normally, response time is <10 hours Monday through Friday. We do not triage on weekends.

Activity

added
Area: OutlookIssue related to Outlook add-ins
and removed
Needs: triage 🔍New issue, needs PM on rotation to triage ASAP
on Jun 6, 2025
self-assigned this
on Jun 6, 2025
arpitsangwanmsft

arpitsangwanmsft commented on Jun 25, 2025

@arpitsangwanmsft

Hey @johnny-outreach
Can you please resend the invitation to the repository for exextoc ? Apologies for the inconvenience.
Though I can repro the issue, trying to add multiple base64 images as part of signature, Still, it would be better to confirm we are referring to the same issue.

added
Needs: author feedbackWaiting for author (creator) of Issue to provide more info
and removed on Jun 25, 2025
johnny-outreach

johnny-outreach commented on Jun 25, 2025

@johnny-outreach
Author

Invite sent to both @arpitsangwanmsft and exextoc

arpitsangwanmsft

arpitsangwanmsft commented on Jun 25, 2025

@arpitsangwanmsft

Hey @johnny-outreach
The link to the repro video seems to be expired. Anyway, can you please help me with this question:
-> Is the Addin Trying to add base64 images when onNewMessageCompose event is trigerred?

added
Needs: author feedbackWaiting for author (creator) of Issue to provide more info
and removed on Jun 25, 2025
johnny-outreach

johnny-outreach commented on Jun 30, 2025

@johnny-outreach
Author

Hey @johnny-outreach The link to the repro video seems to be expired. Anyway, can you please help me with this question: -> Is the Addin Trying to add base64 images when onNewMessageCompose event is trigerred?

Sorry for the delay in coming back to you.

"-> Is the Addin Trying to add base64 images when onNewMessageCompose event is triggered?" - This is correct yes.

Happy to reupload the video recording if this would be helpful?

arpitsangwanmsft

arpitsangwanmsft commented on Jul 1, 2025

@arpitsangwanmsft

Hey @johnny-outreach,
Thank you for reaching out, we can repro the issue.
It has been put on our backlog. We unfortunately have no timelines to share at this point

Internal tracking id: Office: 5827449

added
Status: in backlogIssue is being tracked in the backlog but timeline for resolution is unknown
and removed on Jul 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Area: OutlookIssue related to Outlook add-insStatus: in backlogIssue is being tracked in the backlog but timeline for resolution is unknown

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @exextoc@arpitsangwanmsft@johnny-outreach

      Issue actions

        Multiple drafts when embedding images in OWA · Issue #5788 · OfficeDev/office-js