Avoid some boilerplate code to dynamically allocate and then free the buffers.
Attach a file by drag & drop or click to upload