Correctly store the file selection in "edit multiple" mode (see #7028)