Make Asset Manager's beforeUpload Option Asynchronous for Better Image Validation #5615
aswinkumar863
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current synchronous implementation of the Asset Manager's
beforeUpload
option restricts the ability to perform asynchronous tasks, such as image resolution validation before asset upload. Making thebeforeUpload
asynchronous would allow custom validation, like checking image resolution, and prevent upload on failure. This enhancement, accepting asynchronous functions, ensures the Asset Manager'sbeforeUpload
waits for resolution before proceeding. I'm ready to help out with a pull request if it's helpful.Example Use Case
Beta Was this translation helpful? Give feedback.
All reactions