BoldMinded acquires Ansel, support ending for all add-ons. BoldMinded acquires Ansel, support ending for all add-ons. Read More →
Support has been discontinued. Issues remain available as an archive. Support has been discontinued. Issues remain available as an archive.
New "Prevent file uploads when max quantity reached" not working as expected
#3 opened by Matt V
Description
I set up an image field with a max upload of 1 and the new “Prevent file uploads…” setting set to Yes.
When I upload a single image, I expected the upload field to disappear to prevent me from uploading a new image. It doesn't, and the field allows me to upload a second image, treating it just like the beta did with the greyed out second line.
Replies
- TJ Draper
Replied 3/16/2017 9:53 PM, Edited 11/10/2018 10:09 AM
I'm not able to reproduce this one. This was mostly a JavsScript change so I'm wondering if there is any way you could be loading cached JS. It does seem unlikely since you've mentioned this is a clean install. But maybe try clearing browser cache just in case.
Failing that, can you open up the browser developer console and watch for errors while you are uploading images and working with the field? Also, can you check the Prevent file uploads setting on the field and make sure it stuck?
- Matt V
Replied 3/16/2017 9:58 PM, Edited 11/10/2018 10:09 AM
Aha! Clearing the browser cache did the trick.
Should've tried that first. I blame my cough meds.
- TJ Draper
Replied 3/16/2017 10:00 PM, Edited 11/10/2018 10:09 AM
The cough meds will be properly chastised!
I'm just glad it's not something dumb I did with the code.