and change this function to replace spaces by '_' on windows. (should fix #2143)
Attach a file by drag & drop or click to upload