Open thomas-kl1 opened 4 months ago
Hi @thomas-kl1. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
Hi @engcom-November. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. Hello @thomas-kl1,
Thank you for the report and collaboration!
We did not see the error while using the fileUploader component:
<field name="file">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="required" xsi:type="boolean">true</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
<item name="sortOrder" xsi:type="number">333</item>
<item name="formElement" xsi:type="string">fileUploader</item>
<item name="label" xsi:type="string" translate="true">add file</item>
</item>
</argument>
</field>
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.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12432 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
:x: 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