Accept TIFF images for photo ID upload (scanner default format)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
justin 2026-05-30 16:28:22 -05:00
parent d2f9e642d4
commit 66bd1306e3

View file

@ -215,7 +215,7 @@
&#8226; <strong>Have a scanner?</strong> Scan your ID, save the file, then click the button below to upload it
</div>
<div class="pw-upload-area">
<input type="file" id="dot-photo-id" accept="image/*,.pdf" style="display:none" />
<input type="file" id="dot-photo-id" accept="image/*,.pdf,.tif,.tiff" style="display:none" />
<!-- Preview + quality check -->
<div id="dot-id-preview" hidden>
<div style="text-align:center;margin-bottom:12px">
@ -243,7 +243,7 @@
<svg style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path stroke-linecap="round" stroke-linejoin="round" d="M6.827 6.175A2.31 2.31 0 015.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 00-1.134-.175 2.31 2.31 0 01-1.64-1.055l-.822-1.316a2.192 2.192 0 00-1.736-1.039 48.774 48.774 0 00-5.232 0 2.192 2.192 0 00-1.736 1.039l-.821 1.316z"/><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 12.75a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0zM18.75 10.5h.008v.008h-.008V10.5z"/></svg>
Add Photo of Your ID
</button>
<p style="font-size:11px;color:#94a3b8;text-align:center;margin:8px 0 0">Accepted formats: JPEG, PNG, PDF &middot; Max 15MB</p>
<p style="font-size:11px;color:#94a3b8;text-align:center;margin:8px 0 0">Accepted formats: JPEG, PNG, PDF, TIFF &middot; Max 15MB</p>
<!-- QR code for phone upload — hidden on mobile phones -->
<div id="dot-id-qr-section" style="margin-top:16px;padding:16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;text-align:center">
<div style="display:flex;align-items:center;gap:12px;justify-content:center;margin-bottom:8px">
@ -563,7 +563,7 @@
}
// File type check
var validTypes = ["image/jpeg","image/png","image/heic","image/heif","image/webp","application/pdf"];
var validTypes = ["image/jpeg","image/png","image/heic","image/heif","image/webp","image/tiff","image/tif","application/pdf"];
if (validTypes.indexOf(file.type) >= 0 || file.type.startsWith("image/")) {
checks.push({ok: true, text: "File type: " + file.type.split("/")[1].toUpperCase()});
} else {