This removes the need for running an extra SQL query in these cases.
Attach a file by drag & drop or click to upload