File extensions with multiple periods not processed correctly


(Sam Nazarko) #1

Hello

I want to allow people to upload .tar.gz (gzipped tar) on our forum. I have added tgz and .tar.gz as valid file extensions in Settings -> Files.

However when I try and upload a .tar.gz file, it is rejected, and Discourse says that acceptable formats include ‘targz’:

Discourse should be able to handle attachments with more than one dot in the file extension.

Cheers

Sam


(Rafael dos Santos Silva) #2

I think you need to enable the gz extension.


(Sam Nazarko) #3

That worked. Thank you :slight_smile: