# Attachments aren't included in first group PM post

**URL:** https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540
**Category:** Support
**Created:** [Novembro 21, 2017, 7:12pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540 "2017-11-21T19:12:51Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [Novembro 21, 2017, 7:12pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/1 "2017-11-21T19:12:51Z")

</div>

Continuing the discussion from [Allow all email attachments for group messages setting?](https://meta.discourse.org/t/allow-all-email-attachments-for-group-messages-setting/42452/4):

Following up on the site setting **Allow all email attachments for group messages** …

> [@Allow all email attachments for group messages setting?](https://meta.discourse.org/t/allow-all-email-attachments-for-group-messages-setting/42452/4):
>
> It’s only for incoming emails that are part of a PM with a group.

My question:

Would there be any reason why attachments are only getting processed in _replies_ to a group-based PM, and are skipped/not processed in the initial post within the PM “topic”?

In other words, imagine non-registered email address user sends an email to `group@discourse.example.org` with a PDF attachment for the group to read.

- **Expected behavior:** User staged, attachment appears in first post of the new PM topic and is downloadable. Attachments included in subsequent email replies to the PM topic also appear.
- **Actual behavior:** User staged, attachment **does not appear** in first post of the new PM topic, but **does appear** in subsequent email replies to the PM topic also appear.

The **allow all attachments for group messages** site setting is enabled.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [Novembro 21, 2017, 8:51pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/3 "2017-11-21T20:51:36Z")

</div>

Thanks! Would be good if someone else can attempt to reproduce this … it could certainly be a configuration problem on my end!

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [Novembro 21, 2017, 9:01pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/4 "2017-11-21T21:01:36Z")

</div>

Can you repro this @jomaxro?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Novembro 21, 2017, 9:03pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/5 "2017-11-21T21:03:09Z")

</div>

Sure, I can do some testing.

@downey, is `pdf` in the `authorized extensions` site setting?

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [Novembro 21, 2017, 9:23pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/6 "2017-11-21T21:23:12Z")

</div>

> [@jomaxro](#):
>
> @downey, is pdf in the authorized extensions site setting?

Yes, I’ve added it there.

PS: Should stripping attachments by email be logged anywhere that I might check?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Novembro 21, 2017, 9:24pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/7 "2017-11-21T21:24:59Z")

</div>

You can check the email log, click the icon next to the timestamp.

Now I’m confused though, if you enabled `pdf` across the entire site and an authorized extension, `allow all attachments for group messages` is meaningless, at least as far as `pdf` files are concerned. I’ll do a quick test, but I’m 95% certain we get PDFs in initial group PMs.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Novembro 21, 2017, 9:52pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/8 "2017-11-21T21:52:20Z")

</div>

OK, test completed here on Meta. I was able to email a PDF into our team inbox. Going to need more info to test with here.

`pdf` is in the `authorized extensions` list, and `allow all attachments for group messages` is enabled.

---

<div class="post-metadata">

### Author: ![downey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/downey/32/166878_2.png) [@downey](https://meta.discourse.org/u/downey)
#### Post date: [Novembro 21, 2017, 10:51pm UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/9 "2017-11-21T22:51:58Z")

</div>

Hmm. I can no longer reproduce the problem, so will close this out (with the above good recommendations for others!) and keep a close eye on it. Thanks all.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Novembro 22, 2017, 12:41am UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/10 "2017-11-22T00:41:24Z")

</div>

Sounds good. Flag to reopen if you can reproduce this in the future!

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [Novembro 22, 2017, 12:41am UTC](https://meta.discourse.org/t/attachments-arent-included-in-first-group-pm-post/74540/11 "2017-11-22T00:41:26Z")

</div>


