Mpitily
(FANOMEZANA)
2021 年 5 月 28 日午後 4:14
1
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
Mpitily
(FANOMEZANA)
2021 年 5 月 28 日午後 4:39
3
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:
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
Mpitily
(FANOMEZANA)
2021 年 5 月 28 日午後 4:54
5
Yes, after compressing the file, it worked !
Thanks a lot for your help !
「いいね!」 1
You can also try in first instance to increase this value:
「いいね!」 2
sok777
(sok)
2022 年 1 月 9 日午前 11:08
7
@merefield PDFをすべてのユーザーで有効にする方法はありますか。ただし、プライベートメッセージのみを対象とします。
pfaffman
(Jay Pfaffman)
2022 年 1 月 9 日午前 11:34
8
いいえ、少なくとも簡単ではありません。
PMは単なるトピックです。PDFのアップロードを有効にすると、すべてのトピックで有効になります。
「いいね!」 2
sok777
(sok)
2022 年 1 月 9 日午前 11:43
9
@pfaffman さん、ありがとうございます!ドキュメント(画像以外)のアップロード制限について、TLごとに教えていただけますか?
VVoPham
(Vee VoPham (he/him))
2022 年 3 月 14 日午後 9:15
10
merefield:
それはあなたの「ファイル」設定にあります。
ロバートさん! コミュニティのユーザーがPDFをコメントに添付しようとしていますが(「Attachment Pena Network.pdf is missing」というエラーが表示されます)、うまくいきません。PDFのアップロードを有効にするには、Discourseのファイル設定をどこで見つけられますか? 見つけるのに苦労しています。
「いいね!」 1
pfaffman
(Jay Pfaffman)
2022 年 3 月 14 日午後 10:17
11
スタッフ用の設定は別にありますが、tl用はありません。
@VVoPham アップロードまたは拡張機能でサイト設定を検索すると、見つかるはずです。jpgで検索して、その値を持つ設定を見つけることもできます。
「いいね!」 2
VVoPham
(Vee VoPham (he/him))
2022 年 3 月 16 日午前 1:16
12
ありがとうございます!見つけました。PDFのアップロードも無事完了しました!
「いいね!」 2
pfaffman
(Jay Pfaffman)
2022 年 3 月 16 日午前 3:41
13
素晴らしい!私の質問に回答したことを示すチェックボックスをクリックしていただけますか?
「いいね!」 1
VVoPham
(Vee VoPham (he/him))
2022 年 3 月 16 日午後 4:00
14
ジェイさん、喜んでお手伝いします。チェックボックスはどこにありますか?どこかで見落としているかもしれません…
「いいね!」 1
pfaffman
(Jay Pfaffman)
2022 年 3 月 16 日午後 4:21
15
そうですか。すみません。あなたのトピックではないので、そのオプションはありません。気にしないでください。
「いいね!」 2
VVoPham
(Vee VoPham (he/him))
2022 年 3 月 16 日午後 4:37
16
おっと、すみません!まだでしたら、Mpitilyにフォローアップして対応してもらえるといいのですが!
「いいね!」 2