Attachment form/input is misleading as a textarea
Categories
(bugzilla.mozilla.org :: General, defect, P3)
Tracking
()
People
(Reporter: clement.lefevre, Assigned: kohei)
References
(Depends on 1 open bug)
Details
(Keywords: bmo-triaged)
Attachments
(2 files, 1 obsolete file)
File attachment when reporting a bug looks like a textarea, and any user not awaken enough can easily mix it up with the field where we want to write message/describe the picture (although when typing there it seemed very strange width wasn't limited and we could litterally gets infinite horizontal scrolling). This can be even more misleading when similar-looking textareas on different code forges are inserting HTML/markdown link to the file. Furthermore, what user typed is lost once a file is selected for upload.
There's probably a very good reason explaining why it's not a sinple upload form button, but in doubt I reported this curiosity here (interested in the explanation for this particular-looking file upload form element if that's the case, though!)
| Reporter | ||
Comment 1•11 months ago
|
||
The area we're talking about.
Comment 2•11 months ago
|
||
I can see how it would look like a comment field and be confusing to the end user. We could add some more help text to help differentiate the two textareas and their purpose for the time being until a better UI solution can be found.
Proposed text change to:
Browse a file, drag and drop it, paste text/image/link below, or take a screenshot. To add an additional comment to this attachment, use the text field below instead.
| Comment hidden (obsolete) |
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 4•9 months ago
|
||
Sorry, I thought I was working on my local instance. Anyway, it’s actually a textarea. You can paste a patch, etc. to attach it.
As the original developer of the attachment UI, I’ll volunteer to take care of this. Let me think about how to reduce the confusion.
| Assignee | ||
Updated•9 months ago
|
| Assignee | ||
Comment 5•5 months ago
|
||
I’m refactoring the attachment input as part of Bug 1995464 because the work spec requires the ability to paste attachments.
We can use the clipboard read API to allow pasting; this method wasn’t available in Firefox when I implemented the attachment form.
| Assignee | ||
Comment 6•5 months ago
|
||
This is what I’ve implemented in Bug 1995464.
Description
•