transfer.sh icon indicating copy to clipboard operation
transfer.sh copied to clipboard

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

Open Chronic-Reflexes opened this issue 2 years ago • 2 comments

Title says all

Chronic-Reflexes avatar Feb 21 '23 05:02 Chronic-Reflexes

@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 avatar Mar 01 '23 12:03 aspacca

@Chronic-Reflexes any feedback?

aspacca avatar Mar 10 '23 17:03 aspacca