Come allegare un file PDF?

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 Mi Piace

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 Mi Piace

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

image

2 Mi Piace

@merefield C’è un modo per abilitare il PDF per tutti gli utenti ma solo per i messaggi privati?

No. Almeno non facilmente.

I PM sono solo argomenti. Se abiliti i caricamenti di PDF, sarà per tutti gli argomenti.

2 Mi Piace

Grazie @pfaffman! Che ne dici di caricare documenti (non immagini) limitazioni per TL?

Ciao Robert! Uno degli utenti della mia community sta cercando di allegare un PDF in un commento (vedo l’errore “Attachment Pena Network.pdf is missing”) e non funziona. Dove posso trovare le impostazioni dei file in Discourse, in modo da poter abilitare il caricamento di PDF? Ho difficoltà a trovarle.

1 Mi Piace

C’è un’impostazione separata per il personale, ma non per tl.

@VVoPham se cerchi nelle impostazioni del sito per caricamento e magari estensione dovresti trovarla. Potresti anche cercare jpg per trovare le impostazioni che hanno quel valore.

2 Mi Piace

Grazie! Trovato, e siamo riusciti a caricare i PDF con successo! :grin:

2 Mi Piace

Ottimo! Puoi selezionare la casella di controllo che indica che il mio post ha risposto alla tua domanda?

1 Mi Piace

Ciao Jay, sarei felice di aiutarti. Dov’è quella casella di controllo? Potrei essermela persa da qualche parte…

1 Mi Piace

Oh. Mi dispiace. Non è il tuo argomento, quindi non hai quell’opzione. Lascia perdere. :person_shrugging:

2 Mi Piace

Oh no, mi dispiace! Spero che tu possa seguire Mpitily, così potranno farlo, se non l’hanno già fatto! :slightly_smiling_face:

2 Mi Piace