question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The <input /> rendered by MultipleFileUploadEditor is missing multiple attribute

See original GitHub issue

Before submitting the bug report, please read and check the following items

What happened?

After migrating my project to the latest version, I was not able to select multiple files at once, when using MultipleFileUploadEditor. After dig into the issue, I found out that the rendered <input /> tag is missing multiple attribute, which is different from the previous version.

What did you expect to happen?

When using MultipleFileUploadEditor, instead of selecting one file at a time, I should be able to select multiple files at once.

How to reproduce?

Use MultipleFileUploadEditor in a form.

What Serenity Nuget Versions are you seeing the problem on? (separated by comma)

6.4.2

Relevant log output

No response

Serene template version

No response

Sergen version

No response

Code editor

No response

Operating System

No response

Node.js version

No response

TypeScript version

No response

Database type and version

No response

On which device do you see the problem?

No response

On which operating system do you see the problem?

No response

On which browsers do you see the problem?

No response

On what version of the browsers do you see the problem?

No response

Additional information

The addUploadInput function in the UploadHelper does check the options for allowMultiple.

https://github.com/serenity-is/Serenity/blob/master/src/Serenity.Scripts/corelib/src/ui/helpers/uploadhelper.ts#L23

However, the getUploadInputOptions function in the MultipleFileUploadEditor does not set allowMultiple to true.

https://github.com/serenity-is/Serenity/blob/master/src/Serenity.Scripts/corelib/src/ui/editors/uploadeditors.ts#L316

Issue Analytics

  • State:closed
  • Created 8 months ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
VictorTomailicommented, Feb 7, 2023

Will be published with next serenity scripts version.

1reaction
VictorTomailicommented, Jan 10, 2023

Thank you for bringing this issue to my attention. After reviewing the case again, I can confirm that it is not currently possible to select multiple files at the same time in the multiple file upload feature. However, users can upload multiple files through drag-and-drop or by selecting them one at a time. While this may not be a bug, it is a missing feature that we should address. I will investigate the reason for this limitation and keep this issue open for further examination.

Read more comments on GitHub >

github_iconTop Results From Across the Web

how would I detect if "multiple" attribute is supported for file ...
You can try checking for the existence of the corresponding property: var supportsMultipleFiles = 'multiple' in document.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found