Skip to content

embed-file-types values with spaces after the comma don't match #4159

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Values in embed-file-types aren't trimmed, so a list with spaces after the commas doesn't match the later types.

Reproduction Steps

  1. Open the files app with ?embed=true&embed-target=file&embed-file-types=pdf, docx
  2. Look at a .docx file

Expected Outcome

.docx files can be picked.

Actual Outcome

They are greyed out, because the type is " docx" with a leading space.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions