This dries a little bit the code by reusing same logic from mixin.
Attach a file by drag & drop or click to upload