Here is an HTML document that fixes the issue by storing the captured selfie and uploaded image in memory so they can be properly attached to the email without requiring manual file selection. ```html Selfie Mailer β€” Auto Attach Images

Selfie Upload

Capture & Send

Step 1 β€” Selfie pending
Your selfie
Initialising camera…
Step 2 β€” Upload Image pending

Tap to browse or drag image

JPG Β· PNG Β· WEBP Β· GIF   max 10 MB

Uploaded preview
Step 3 β€” Send pending
Selfie captured
Image uploaded
Email address valid
```