-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ui Component File Field #38908
Comments
Hi @thomas-kl1. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-November. Thank you for working on this issue.
|
Hello @thomas-kl1, Thank you for the report and collaboration! We did not see the error while using the fileUploader component:
Can you please check and let us know if this is working at your end. Thank you. |
fileUploader and file are two different component. The file component allows to select a file without uploading it right away. |
It is recommended to use fileUploader, but in case if you are using file component for some specific use case, can you let us know the same. |
Could you elaborate why it's not recommended? It's not mentioned in the documentation. I use file component because I don't feel the need to split the form submission in two parts. The file uploader component requires to have an upload ajax route. So it adds extra work to cleanup uploaded files if the user finally didn't submitted the form. |
Yes file component can minimize the extra work needed for ajax, so confirming this issue. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-12432 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
❌ You don't have permission to export this issue. |
@magento I am working on this |
Preconditions and environment
Steps to reproduce
Add the following field in a ui component form:
Expected result
The form is submitted without error.
Actual result
Even if we select a file, the validation fails, like no file was selected.
h
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: