Define with-output-file and call-with-output-file for that.
Attach a file by drag & drop or click to upload