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

Emit event when file is changed #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lisotton
Copy link

Hi,

I'm using this field for a resource Podcast, which has a field for the duration. I would like to populate the duration field from client side using FileReader, but to do this I need to know when a new file was selected.

Most of the fields from Laravel Nova already emit an event when a field is changed, but file related fields (Image and File) don't. I already created a request (laravel/nova-issues#3459), but I don't know if this will be included in a Laravel Nova release.

I think this is a good improvement for this package and is just one line of code.

I will be happy to hear feedback.

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

Successfully merging this pull request may close these issues.

1 participant