Move the second part of client_write_output() into a separate function.
Attach a file by drag & drop or click to upload