Skip to content

[Bug]: List of files uploaded to File Drop contains unlabeled icons #49923

@rosahaj

Description

@rosahaj

⚠️ This issue respects the following points: ⚠️

Bug description

After uploading files to a File Drop, an icon indicating the file type is displayed next to the file name (e.g. a small PDF icon for PDF files). Because the icon is neither labeled nor hidden from accessibility APIs, it's described as an unlabeled image when using certain screen readers together with certain browsers (such as Google TalkBack + Google Chrome).

Relevant HTML snippet (after file upload):

<ul id="drop-uploaded-files">
  <li title="Example.pdf" data-name="Example.pdf">
    <img src="/apps/theming/img/core/filetypes/application-pdf.svg?v=1b3d5f7a"> Example.pdf
  </li>
</ul>

Since the file type is inferred based on the file extension alone and does not provide any new information not already contained in the filename, the icon is merely a visual aid. I believe the icon should therefore be hidden from accessibility APIs with aria-hidden="true".

Steps to reproduce

  1. Create new file request
  2. Upload a file to File Drop

Expected behavior

Image is ignored by accessibility APIs

Nextcloud Server version

30

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

☑️ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions