Upload Dialog Test: uploadBlob path and DOM cleanup

Tests that the shared uploadBlob helper posts a blob as multipart form data and reports success and server errors, and that stale dialog DOM is cleaned up on close.