-
Couldn't load subscription status.
- Fork 1.3k
Attachments component #4482
-
I know the attachments option just came out, but, since we got modals, would be nice to have an attachments component — where you can upload your own image and send it to the bot.
The way this component could be implemented is exclusivly in modals, otherwise it will cause problems with UX.
The component might look like this:
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 27 -
❤️ 11 -
🚀 17 -
👀 17
We've added a file upload component to modals!
https://discord.com/developers/docs/change-log#introducing-the-file-upload-component-in-modals
Replies: 28 comments 15 replies
-
I use modals as a bug report form and being able to directly upload log files, screenshots, or videos to be sent with the modal submission will drastically improve the user experience!
Currently, users have to upload the file to an external service like pastebin, imgur, and youtube and paste a link into the modal.
Beta Was this translation helpful? Give feedback.
All reactions
-
Same! I use Trello, and have to request the users to upload the files to Trello after I automatically create a ticket.
Beta Was this translation helpful? Give feedback.
All reactions
-
True and have to users to upload the files to Trello after or video sent with the modal submission will drastically improve the user experence to Support Work in VietNam
Beta Was this translation helpful? Give feedback.
All reactions
-
Yeah this idea is great. Maybe bots should also specify a minimum size of the image and the format of the image, because there are some things that require a specific image size.
Beta Was this translation helpful? Give feedback.
All reactions
-
picture
Beta Was this translation helpful? Give feedback.
All reactions
-
Upvoting this. I'm working on a interaction based mailbox system which would have a big advantage with such a feature!! 👍
Beta Was this translation helpful? Give feedback.
All reactions
-
I’m working on a system where users can turn in Quest rewards. This is exactly what I want for users being able to show proof etc.
Beta Was this translation helpful? Give feedback.
All reactions
-
I also would like this functionality. The requirement to use a slash command option makes the workflow of the bot awkward in many use cases. My current use case requires an admin workflow where uploading a file as a requirement is unknown until after using components to navigate to an optional state that needs the upload.
A modal type works. However a button component of type attachment button that would pop up the file find dialog with an optional extension filter when pressed would work as well.
Beta Was this translation helpful? Give feedback.
All reactions
-
I've been building a specialized profile bot for a server and having image uploads through a modal would be perfect for it
Beta Was this translation helpful? Give feedback.
All reactions
-
Please add this. I'd love for my ticket modals to have this feature.
Beta Was this translation helpful? Give feedback.
All reactions
-
As an interesting addition could have a choice between "file from device storage", "camera image", "screenshot", "canvas", etc. as an attachment
Beta Was this translation helpful? Give feedback.
All reactions
-
This would be absolutely amazing if it could be supported. In a project I have it would be absolutely a major QoL improvement for uploading screenshots.
Beta Was this translation helpful? Give feedback.
All reactions
-
Any updates on that?
Beta Was this translation helpful? Give feedback.
All reactions
-
a file input for modals would be very useful for interactions that require complex/variable construction
Beta Was this translation helpful? Give feedback.
All reactions
-
upvoting this as well, the ability to add a screenshot/image is crucial for any type of native bug report form within Discord itself.
Beta Was this translation helpful? Give feedback.
All reactions
-
This would be extremely useful. I'm making a bot that allows users to modify GFX templates with their own images and colors, but right now the users has to provide an image URL, which is an unnecessary hassle.
Beta Was this translation helpful? Give feedback.
All reactions
-
Please do this. :)
Beta Was this translation helpful? Give feedback.
All reactions
-
This would be quite helpful.
Beta Was this translation helpful? Give feedback.
All reactions
-
This would be better for the user-experience because users won't have to provide an URL but can just upload an image.
Beta Was this translation helpful? Give feedback.
All reactions
-
This could be abused to send excessively large files but could also improve security for the bot as they are no longer sending a request to an arbitrary URL
Beta Was this translation helpful? Give feedback.
All reactions
-
I'd imagine that files get uploaded to the Discord CDN with the usual Discord file size limits, so the bot only receives the meta data in the interaction and can decide to download it or not.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 3
-
As suggested in the OP, it is already possible to receive arbitrary uploads from users by way of attachments with an application command option (type 11). However, whilst this feature was new when this thread was posted in 2022, it is certainly no longer the case. So the contention cannot be related to allowing user uploads, and it also cannot be related to feature infancy, so it is not clear to me the reason this has not yet been implemented...
Beta Was this translation helpful? Give feedback.
All reactions
-
there's no reason it hasn't been implemented, it just hasn't been high enough priority to get built so far.
Beta Was this translation helpful? Give feedback.
All reactions
-
👍 2
-
Any updates on this suggestion?
Beta Was this translation helpful? Give feedback.
All reactions
-
I need it too!
Beta Was this translation helpful? Give feedback.
All reactions
-
discord think they aang the way they vanish when we need a feature the most
Beta Was this translation helpful? Give feedback.
All reactions
-
we're waiting discord.
Beta Was this translation helpful? Give feedback.
All reactions
-
modals aren't crazy and don't make me want to use them right now...
I hope they'll be improved...
Beta Was this translation helpful? Give feedback.
All reactions
-
We still waiting 😞
Beta Was this translation helpful? Give feedback.
All reactions
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
-
Still wating
Beta Was this translation helpful? Give feedback.
All reactions
-
every now and then I get a mail on my inbox that gently reminds me that this feature may never come
Beta Was this translation helpful? Give feedback.
All reactions
-
😄 1
-
every now and then I get a mail on my inbox that gently reminds me that this feature may never come
But we will still wait for it
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 4
-
maybe one day!
Beta Was this translation helpful? Give feedback.
All reactions
-
We've added a file upload component to modals!
https://discord.com/developers/docs/change-log#introducing-the-file-upload-component-in-modals
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 8
-
Omg amazing!!!!!
Beta Was this translation helpful? Give feedback.
All reactions
-
Nice. Thx 👌
Beta Was this translation helpful? Give feedback.
All reactions
-
😱😱 yes!!!! This is amazing news!
Beta Was this translation helpful? Give feedback.
All reactions
-
i prayed for times like these 😭😭🙏🙏🙏
Beta Was this translation helpful? Give feedback.
All reactions
-
We've added a file upload component to modals!
https://discord.com/developers/docs/change-log#introducing-the-file-upload-component-in-modals
NO EFFING WAY. I was literally just yesterday venting abut this not being an option. This is HUGE!! Thank you all!!
I am using this feature as part of "Clan Bingo" event for my RuneScape clan.
Beta Was this translation helpful? Give feedback.