Option to add files to UploadFileList
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start by locating the UploadFileList API and the UploadFile record in the modular Upload implementation. Add the requested way to supply an existing UploadFile and verify that it appears in the list, while checking the component's existing usage and tests for the expected behavior.
Written by the indexing model from the issue text.
Description
Describe your motivation
I really like the new modular Upload. What I am missing, is the option to add file to the UploadFileList.
The reason for this is, we often used the Upload as a CustomField and therefor it would be nice to show already existing files in the list.
Describe the solution you'd like
Add a method to add a file to the UploadFileList.
void addFile(UploadFile file)
record UploadFile(
int complete,
String fileName,
...
)
Describe alternatives you've considered
Before we did this with below code:
upload.getElement().setAttribute("files", json);
Additional context
Vaadin: 25.2
- Dominant language
- Java
- Stars
- 129
- Forks
- 78
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 196
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vaadin/flow-components
-
DX Impact: Low Severity: Minor vaadin-combo-box vaadin-multi-select-combo-box
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
vaadin/flow-components#10141 · 2 comments ·
-
enhancement vaadin-upload
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vaadin/flow-components#10086 · 2 comments ·
-
documentation vaadin-ordered-layout
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vaadin/flow-components#10085 · 3 comments ·
-
documentation vaadin-text-field
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vaadin/flow-components#10062 · 3 comments ·
-
enhancement vaadin-ordered-layout
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
vaadin/flow-components#9798 · 1 comment ·
All issues in vaadin/flow-components
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100