This avoids duplicating the code. Michael Paquier, reviewed by Simon Riggs and me
Attach a file by drag & drop or click to upload