Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently if no file or more than 1 file is selected the error "Please select a file" is given. This is confusing especially if more than 1 file is selected.
This is done on line 526 of imce.js
Why not replace line 526 and 527 with:
if (imce.validateSelCount(1,1)) {
imce.send(imce.vars.prvfid);
}
This utilises the neat validateSelCount function already available and improves feedback given to users about their actions. It also lays the foundation for a possible patch to be able to insert more than 1 image at a time from the IMCE File Browser.
I apologize for the way I suggest a code change, I'm not familiar with creating patches yet.
Comment | File | Size | Author |
---|---|---|---|
#2 | imce-Improve_file_select_feedback-1594434-2-D7.patch | 604 bytes | thalles |
Comments
Comment #0.0
KingdutchCode formatting
Comment #1
thallesWorks fine to me!
Comment #2
thallesFollow a patch
Comment #4
thalles