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
Image de-duplication doesn't work in the multiple upload view when using a custom Image model with required fields #8892
Comments
I also managed to reproduce that issue - when you use default image model, and try to upload the same file you get warning message that looks like this: |
I think I'll fix it tomorrow (that is, unless there is someone else who wants to pick it up). |
I tried to fix that, but
makes it work like it should (tho fields from CustomModel are missing so it's not really a solution) and it completely changes how submit is processed later on. With
I don't really know why it works this way, and don't want to make dirty fix, so I'll leave this to someone else. Hopefully my little investigation is going to help someone later. |
Thanks for having a look @Dolidodzik. I think the issue here is that the logic to find duplicates wasn't added in the So, I think the fix would be: |
Thanks for your response @Tijani-Dia! Yeah, I understand what you mean, I tried to solve it myself like this, but when I tried I realized that both To really solve this issue, we would need to check how upload/validation is handled from this input: And well, since no one solved this yet I guess I can give it a try once more. |
…age model is used
Issue Summary
The image de-duplication feature doesn't work in the multiple upload view when using a custom Image model that has additional required fields.
Steps to Reproduce
wagtail start myproject
alt
fieldUpdate
buttonI'd expect to see a warning message telling me that the image I just uploaded might be a duplicate.
Technical details
The text was updated successfully, but these errors were encountered: