There is no need to release the async_fileio structure before calling set_async_direct_result().
Attach a file by drag & drop or click to upload