Skip to content

[Issue] Adding failure callback to ui file uploader #29557

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #27092: Adding failure callback to ui file uploader


Summary (*)

Magento 2.4-develop
Magento_Ui file uploader works fine. However, recently when I have used it for custom file upload, and when I had error while uploading file there was no info what happened. Uploader just stopped uploading. After debugging it turned out it was 413 from nginx, and next steps were clear (bumping post, upload and client body size). I think if we have an error we should get info in dev tools console.

Magento_Downloadable file uploader in adminhtml is heavily based on this uploader, so whole thing can be investigated and tested while creating downloadable product.
By the way, I had refactored formatting a little bit.

Examples (*)

  1. Open downloadable product form
  2. Try to upload huge file exceeding nginx and php limitations (especially client_max_body_size)
  3. There is no info, uploader just stops working.

Proposed solution

Metadata

Metadata

Labels

Component: DownloadableComponent: UiFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchSeverity: S2Major restrictions or short-term circumventions are required until a fix is available.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions