Skip to content
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

FEATURE: Make asset validation compatible to Neos UI / backend modules #5379

Open
1 task done
nezaniel opened this issue Nov 25, 2024 · 0 comments
Open
1 task done
Labels

Comments

@nezaniel
Copy link
Member

Is there an existing issue for this topic?

  • I have searched the existing issues

Description

We have a requirement where assets need custom, backend-side validation, i.e. file size or image dimensions etc.
I've tried two approaches so far:

  1. AOPing into the respecting controller actions to validate the file and add a flash message
    Effect: Validation works, but the flash message gets lost $somehow
  2. Adding a custom implementation of the AssetValidatorInterface
    Effect: Validation works, but Fluid cannot handle the FlowUploadedResource that then seems to be the asset's resource property then.

Possible Solution

It would be nice to have additional control over the upload mechanism from project packages, i.e. by configuration or implementing an interface etc.
Probably of particular interest for the new Media UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant