View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0025959 | mantisbt | attachments | public | 2019-08-04 04:37 | 2025-04-13 16:02 |
| Reporter | tedritheni | Assigned To | atrol | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | no change required | ||
| Summary | 0025959: Pasting images as attachments does not work in Safari and Edge | ||||
| Description | Raising this as 0021797 was closed without comment and the issue remains | ||||
| Tags | No tags attached. | ||||
|
@syncguru are you looking into this ? I think it should be fixed before 2.22.0 is released. |
|
|
@dregad- For Safari, I cannot reproduce this issue locally. I cannot test on Edge though. |
|
|
I tried 2.27.1 and current master on Firefox and Edge and found that pasting images does work if you first click in the area and close the file selection dialog. |
|
|
@dregad are you able to reproduce on Safari? |
|
|
Seems to work (Safari 17.6 / macOS 14.6). Also tested with Chromium 133. |
|
|
You used the context menu paste option with keyboard focus in the note field. |
|
Not sure what you mean by "in the upload section". |
|
|
This is what I mean with "upload section" |
|
|
The JavaScript event handler that processes image pasting is currently attached to the form in which the dropzone area (i.e. what you're calling the "upload section") is. This was explained by @syncguru in https://github.com/mantisbt/mantisbt/pull/1527#issuecomment-511613618:
In bug_report_page.php, this form (id The behavior in view.php is different, because the page is made up of multiple forms, so ctrl-V is only active when the focus is somewhere on the See attached screenshots for illustration of the covered areas. So IMO this feature currently works as designed, but if the expectation is for ctrl-V to work from anywhere on the page, then maybe this needs to be changed. |
|
|
Thanks a lot for analyzing and explaining. Now I understand also the strange behavior that just the first attempt to paste via Ctrl+V does not work. |
|
Almost, yes. The focus does not need to be on an actual input field. Ctrl-V will also work after you click with the mouse e.g. on the Note label or the section title (actually, anywhere within the form element). Is your expectation that Paste should work from anywhere on the page ? I have not tested, but I'm sure that's feasible. |
|
No, even if this would be convenient, it would not be intuitive, and could be confusing. |
|
|
OK, then I won't spend time trying to make that work ;-) Based on our discussion, do you think that this issue needs to remain open ? From my perspective it can be resolved as no change required. |
|
|
Set to "resolved". |
|