Do error handling with GError instead of aborting with g_error().
Attach a file by drag & drop or click to upload