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

Open
opened 2026-01-19 18:28:52 +00:00 by michael · 2 comments
Owner

Originally created by @Chronic-Reflexes on GitHub.

Title says all

Originally created by @Chronic-Reflexes on GitHub. Title says all
Author
Owner

@paolafrancesca commented on GitHub:

@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

@paolafrancesca commented on GitHub: @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
Author
Owner

@paolafrancesca commented on GitHub:

@Chronic-Reflexes any feedback?

@paolafrancesca commented on GitHub: @Chronic-Reflexes any feedback?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#76