[Webkit-unassigned] [Bug 258658] New: File programatically added to <input type="file"> not shown

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 29 00:27:05 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=258658

            Bug ID: 258658
           Summary: File programatically added to <input type="file"> not
                    shown
           Product: WebKit
           Version: Safari Technology Preview
          Hardware: Mac (Apple Silicon)
                OS: macOS 13
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Forms
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: jonathan at buzzera.com
                CC: cdumez at apple.com, wenson_hsieh at apple.com

Created attachment 466858

  --> https://bugs.webkit.org/attachment.cgi?id=466858&action=review

Screenshot of problem in Safari

## Overview:

When programmatically adding a file to an <input type="file"> element, the file input does not show any indication in the UI that a file is present.

## Steps to Reproduce:

Run the code snippet in this post: https://stackoverflow.com/a/68182158

## Actual Results:

The file input is shown in its default state, as if there are no files selected. It only shows the "Choose File" button, and there is no text/filename next to it.

## Expected Results:

It would be more useful if the file input showed the name of the file that was added programatically (like Chrome and Firefox do). That indicates to the user that a file is present in the input.

## Build Date & Hardware:

- Safari: Version 16.5.1 (18615.2.9.11.7)
- Safari Technology Preview: Release 173 (Safari 17.0, WebKit 18616.1.20.2)

## Additional Builds and Platforms:

The problem does not occur on iPadOS 16.4 (Simulator) and iOS 16.5.1 (device).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230629/650d22e6/attachment-0001.htm>


More information about the webkit-unassigned mailing list