Closed eullercdr closed 1 year ago
Hi @eullercdr What version of the package are you running?
@ctessier I am using the version ctessier/nova-advanced-image-field": "^2.0
OK You should be a little more specific though...
What doesn't work anymore? Which version of Nova? What error do you get? What does you resource class look like? What is your version of PHP?
@ctessier it's v4.22.0, it's working on v4.21.0
I can't reproduce any issue with Nova v4.22.0
Guys! Give me a little more to work from, here! What doesn't work anymore? What error do you get? What does you resource class look like? What is your version of PHP?
it doesn't work with Nova 4.22.0 because they changed the behaviour of DropZone
in short, you need to update to use @file-changed="handleFileChange" instead of just @change="handleFileChange"
presumably you can use both of them to ensure backwards compatibility too?
https://github.com/ctessier/nova-advanced-image-field/pull/97
I've tested and with the @change line kept as well as the new @file-changed line, it works in Nova <4.22.0 too.
:)
Thank you @puzzledmonkey
I'll have a look at your PR asap! I didn't have any issue while choosing a file, is only the dropzone affected?
it doesn't work for me when choosing a file or when dropping a file on the dropzone.
you might have another plugin installed that's overwriting the dropzone code i guess? but here i had no luck with any uploading until i added that @file-changed line.
Thank you very much @puzzledmonkey ! I was able to reproduce. I will publish a new version with your fix!
Good work, thank you!
This issue was fixed in v2.0.2. Thank you @puzzledmonkey for your contribution 😉
Cheers for fixing this. Ran into it myself.
@ctessier Can you tell me why the package is not working anymore? I'm using the latest version of Nova.