OfficeDev / OfficeDev/office-js

The Outlook client has different attachment values that can be retrieved using getAttachmentsAsync in certain situations.

Open
#4,643 6 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Area: Outlook
Dominant language
JavaScript
Stars
845
Forks
124
Avg merge
3d 17h
Merged PRs (30d)
1

Description

Provide required information needed to triage your issue

Your Environment

  • Platform : Outlook client
  • Host : Outlook
  • Operating System: Windows OS

Summary

In the Outlook client, when an image is inserted into the body of the email and the attachment is retrieved with getAttachmentsAsync, the name of the image is changed to something like "image001.png" and the size is retrieved as 0.
However, the value retrieved by getAttachmentsAsync changes when sending the corresponding e-mail after saving it as a draft.
I verified that when I sent the image from the draft, the name was still "image001.png" and the size was rewritten from 0 to the size of the image.
Does a specific action change the format of attachments in the body of the email?

Current behavior

  1. Insert images within the body of an email in Outlook client.
  2. Save as a draft.
  3. Send the email you just saved from the draft.

At this time, if you check the value of the attachment retrieved by getAttachmentsAsync, you will see that the size of the attachment has changed.

The values obtained by getAttachmentsAsync were checked in the console as follows.
【When creating a new mail】
スクリーンショット 2024-07-04 135614

【When sending from a draft】
スクリーンショット 2024-07-04 141139

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.