How to attach a PDF file?

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

It’s in your Files settings:

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

1 Like

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 ?

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

Yes, after compressing the file, it worked !

Thanks a lot for your help !

1 Like

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

image

2 Likes