Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Attachments component #4482

Discussion options

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:

Source

You must be logged in to vote

Replies: 28 comments 15 replies

Comment options

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.

You must be logged in to vote
2 replies
Comment options

Same! I use Trello, and have to request the users to upload the files to Trello after I automatically create a ticket.

Comment options

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

Comment options

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.

You must be logged in to vote
0 replies
Comment options

picture

You must be logged in to vote
0 replies
Comment options

Upvoting this. I'm working on a interaction based mailbox system which would have a big advantage with such a feature!! 👍

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Comment options

I've been building a specialized profile bot for a server and having image uploads through a modal would be perfect for it

You must be logged in to vote
0 replies
Comment options

Please add this. I'd love for my ticket modals to have this feature.

You must be logged in to vote
0 replies
Comment options

As an interesting addition could have a choice between "file from device storage", "camera image", "screenshot", "canvas", etc. as an attachment

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Comment options

Any updates on that?

You must be logged in to vote
0 replies
Comment options

a file input for modals would be very useful for interactions that require complex/variable construction

You must be logged in to vote
0 replies
Comment options

upvoting this as well, the ability to add a screenshot/image is crucial for any type of native bug report form within Discord itself.

You must be logged in to vote
0 replies
Comment options

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.

You must be logged in to vote
0 replies
Comment options

Please do this. :)

You must be logged in to vote
0 replies
Comment options

This would be quite helpful.

You must be logged in to vote
0 replies
Comment options

This would be better for the user-experience because users won't have to provide an URL but can just upload an image.

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
3 replies
Comment options

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.

Comment options

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...

Comment options

there's no reason it hasn't been implemented, it just hasn't been high enough priority to get built so far.

Comment options

Any updates on this suggestion?

You must be logged in to vote
0 replies
Comment options

I need it too!

You must be logged in to vote
0 replies
Comment options

discord think they aang the way they vanish when we need a feature the most

You must be logged in to vote
0 replies
Comment options

we're waiting discord.

You must be logged in to vote
1 reply
Comment options

modals aren't crazy and don't make me want to use them right now...
I hope they'll be improved...

Comment options

We still waiting 😞

You must be logged in to vote
0 replies

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment options

Still wating

You must be logged in to vote
3 replies
Comment options

every now and then I get a mail on my inbox that gently reminds me that this feature may never come

Comment options

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

Comment options

maybe one day!

Comment options

You must be logged in to vote
6 replies
Comment options

Omg amazing!!!!!

Comment options

Nice. Thx 👌

Comment options

😱😱 yes!!!! This is amazing news!

Comment options

i prayed for times like these 😭😭🙏🙏🙏

Comment options

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.

Answer selected by advaith1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /