Allow file size and extensions specification for FileUpload components #7930
Unanswered
S2009-dev
asked this question in
API Feature Requests & Ideas
Replies: 3 comments 3 replies
-
|
It also would be cool if we could specify the allowed file extensions ! If I want a |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
i think you can add a custom checks in your code to check the file type and file size and if it goes above the limit and dont a proper type you can simply return a warning message |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
This would be really helpful tbh, it would also cut down on unnecessary file uploads, which obviously would benefit Discord too |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be cool if we could specify the requested files size in the FileUpload components, while remaining within the limits imposed by Discord.
Use cases:
server1/channel1and must be reposted inserver2/channel2, we need to ensure that the bot can repost it.txtfile with some data, but I want to restrict the maximum size for two reasons:25MBfor atxtfile is extremely huge.Beta Was this translation helpful? Give feedback.
All reactions