dutchcoders / transfer.sh

Easy and fast file sharing from the command-line.
https://github.com/dutchcoders/transfer.sh
MIT License
15.09k stars 1.54k forks source link

{ Feature Request } Whitelist/blacklist supported file types for upload #531

Open Chronic-Reflexes opened 1 year ago

Chronic-Reflexes commented 1 year ago

Title says all

aspacca commented 1 year ago

@Chronic-Reflexes what the list should accept as value? content type? that's easily to circumvent at the moment (https://github.com/dutchcoders/transfer.sh/blob/main/server/handlers.go#L522)

we'd need a way to identify the type of the file like the file unix does, and then understand how to translate that kind of varying output to a meaningful value to match a list

aspacca commented 1 year ago

@Chronic-Reflexes any feedback?