This fixes a busy loop. (cherry picked from commit 5fdc56db)
Attach a file by drag & drop or click to upload