# איך מצרפים קובץ PDF?

**URL:** https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943
**Category:** Support
**Created:** [28 במאי,‏ 2021,‏ 4:14pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943 "2021-05-28T16:14:18Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![Mpitily](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Mpitily](https://meta.discourse.org/u/Mpitily)
#### Post date: [28 במאי,‏ 2021,‏ 4:14pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/1 "2021-05-28T16:14:18Z")

</div>

Hello

We are using Discourse as a tool to exchange and share experiences.  
I was going to publish PDF content but the file attachment only allows jpg, jpeg, png, gif, heic, heif, webp extensions.

Could someone give me a way to attach the PDF file in the platform please ?

Thanks

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [28 במאי,‏ 2021,‏ 4:16pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/2 "2021-05-28T16:16:02Z")

</div>

It’s in your Files settings:

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/b/bbb6b9b6566192adb8126a92d470283d6fc6ed92.png)

In this example, only staff are allowed to upload pdf files.

---

<div class="post-metadata">

### Author: ![Mpitily](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Mpitily](https://meta.discourse.org/u/Mpitily)
#### Post date: [28 במאי,‏ 2021,‏ 4:39pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/3 "2021-05-28T16:39:04Z")

</div>

Thank you for your help.

I have changed the settings and now the PDF can be attached.  
However, when I reach 50% of the download, it stops and gives this message:  
“Sorry, there was an error sending the file. Please try again.”  
I tried more than 5 times but it gives this again.

What would be the problem ? and how to fix it please ?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [28 במאי,‏ 2021,‏ 4:40pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/4 "2021-05-28T16:40:32Z")

</div>

You might need to update your `nginx` config too if the files are very large:

> [@Image Uploading Size Show Exceeding Though It's Less](https://meta.discourse.org/t/image-uploading-size-show-exceeding-though-its-less/134637/4):
>
> I guess the new update added a hint about fixing this, so here is the full guide for those who face the same issue… it’s all about nginx: 1. Go to nginx folder: cd /etc/nginx 2. Add this line to your nginx.conf file: http { ... client\_max\_body\_size 4M; } This will allow nginx to accept files with a max size of 4 megabytes. 3. Restart nginx: If you’re paranoid like me use run systemctl restart nginx Or simply send the nginx restart signal by running nginx -s reload

---

<div class="post-metadata">

### Author: ![Mpitily](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@Mpitily](https://meta.discourse.org/u/Mpitily)
#### Post date: [28 במאי,‏ 2021,‏ 4:54pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/5 "2021-05-28T16:54:01Z")

</div>

Yes, after compressing the file, it worked !

Thanks a lot for your help !

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [28 במאי,‏ 2021,‏ 5:37pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/6 "2021-05-28T17:37:38Z")

</div>

You can also try in first instance to increase this value:

![image](https://global.discourse-cdn.com/meta/original/3X/d/0/d08f9b66c0e360b5b81356ba924c02dfad11e483.png)

---

<div class="post-metadata">

### Author: ![sok777](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sok777](https://meta.discourse.org/u/sok777)
#### Post date: [9 בינואר,‏ 2022,‏ 11:08am UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/7 "2022-01-09T11:08:46Z")

</div>

@merefield Is there any way to enable PDF for all users but only for private messaging?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [9 בינואר,‏ 2022,‏ 11:34am UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/8 "2022-01-09T11:34:56Z")

</div>

No. At least not easily.

PMs are just topics. If you enable pdf uploads it’ll be for all topics.

---

<div class="post-metadata">

### Author: ![sok777](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sok777](https://meta.discourse.org/u/sok777)
#### Post date: [9 בינואר,‏ 2022,‏ 11:43am UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/9 "2022-01-09T11:43:38Z")

</div>

Thanks @pfaffman ! How about uploading docs (not images) limitations by TL?

---

<div class="post-metadata">

### Author: ![VVoPham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vvopham/32/249308_2.png) [@VVoPham](https://meta.discourse.org/u/VVoPham)
#### Post date: [14 במרץ,‏ 2022,‏ 9:15pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/10 "2022-03-14T21:15:17Z")

</div>

> [@merefield](#):
>
> It’s in your Files settings:

Hi Robert! One of my community’s users is trying to attach a PDF in a comment (I see the error “Attachment Pena Network.pdf is missing”), and it’s not working. Where can I find the files settings in Discourse, so I can enable PDF uploads? I’m having a hard time locating it.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [14 במרץ,‏ 2022,‏ 10:17pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/11 "2022-03-14T22:17:53Z")

</div>

There is a separate setting for staff, but not tl.

@VVoPham is you search the site settings for upload and maybe extension you should find it. You could also search jpg to find the settings that have that as a value.

---

<div class="post-metadata">

### Author: ![VVoPham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vvopham/32/249308_2.png) [@VVoPham](https://meta.discourse.org/u/VVoPham)
#### Post date: [16 במרץ,‏ 2022,‏ 1:16am UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/12 "2022-03-16T01:16:14Z")

</div>

Thanks! Found it, and we were able to upload PDFs successfully! 😁

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [16 במרץ,‏ 2022,‏ 3:41am UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/13 "2022-03-16T03:41:20Z")

</div>

Great! Can you click that checkbox indicating that my post answered your question?

---

<div class="post-metadata">

### Author: ![VVoPham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vvopham/32/249308_2.png) [@VVoPham](https://meta.discourse.org/u/VVoPham)
#### Post date: [16 במרץ,‏ 2022,‏ 4:00pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/14 "2022-03-16T16:00:49Z")

</div>

Hi Jay, I’d be happy to. Where is that checkbox? I might be missing it somewhere…

 ![Screen Shot 2022-03-16 at 12.00.10 PM.png](https://global.discourse-cdn.com/meta/original/3X/5/2/523478be56f57eb815850567a59980025ff9faed.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [16 במרץ,‏ 2022,‏ 4:21pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/15 "2022-03-16T16:21:55Z")

</div>

Oh. Sorry. It’s not your topic, so you don’t have that option. Never mind. 🤷

---

<div class="post-metadata">

### Author: ![VVoPham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vvopham/32/249308_2.png) [@VVoPham](https://meta.discourse.org/u/VVoPham)
#### Post date: [16 במרץ,‏ 2022,‏ 4:37pm UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/16 "2022-03-16T16:37:34Z")

</div>

Oh no, sorry! Hopefully, you can follow up with Mpitily, so they can do this, if they haven’t already! 🙂

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [6 בספטמבר,‏ 2024,‏ 10:35am UTC](https://meta.discourse.org/t/how-to-attach-a-pdf-file/191943/17 "2024-09-06T10:35:41Z")

</div>


