Fix space issue and add test Closes #25879 See merge request !8217
Attach a file by drag & drop or click to upload