typebot.io/apps/builder
Baptiste Arnaud 512c988951
Some checks failed
Create Tag / create-tag (push) Has been cancelled
Deploy Workflows (Fly.io) / deploy (push) Has been cancelled
👌 Add camera capture options to file uploads (#2560)
## What changed

- add an optional Capture setting for image-only File Upload blocks with
None, Back camera, and Front camera choices
- persist the standard `environment` and `user` values and apply them
through the runtime file input `capture` attribute
- preserve existing behavior when capture is unset, including the legacy
Android accept workaround
- normalize extension-based image allowlists for capture while keeping
server-side validation fail-closed
- update schemas, generated OpenAPI specs, embed package versions, and
focused tests
- install Playwright Chromium during Codex worktree setup and ignore
local Revue session state

## Validation

- pre-commit affected format, lint, link, test, and OpenAPI targets:
passed
- affected tests across 14 projects under `.env.dev.example`: passed
- typecheck for builder, viewer, JS embed, File Input, input schemas,
lib, and bot engine: passed
- targeted Viewer Playwright file-upload capture test: passed (2 tests)
- targeted schema, allowlist, runtime helper, and upload validation
suites: passed

## Browser behavior

The standard capture attribute is a browser hint. Supported mobile
browsers may open the selected camera directly; desktop and unsupported
browsers may continue to show a regular file chooser.
2026-07-15 18:53:17 +02:00
..
.cursor ♻️ Harmonize unit test execution across the workspace 2025-07-07 15:44:33 +02:00
public Add Ask Model action using OpenAI Responses API (#2455) 2026-04-13 14:02:35 +00:00
src 👌 Add camera capture options to file uploads (#2560) 2026-07-15 18:53:17 +02:00
next.config.mjs 🔒️ Fix TAC scan header findings (#2549) 2026-06-29 16:16:36 +02:00
package.json 🐛 Restore automatic dev database sync (#2550) 2026-07-10 11:36:53 +02:00
postcss.config.mjs ♻️ Upgrade to Tailwind v4 2025-10-29 19:04:59 +01:00
tolgee.d.ts ♻️ Use bun, biome, better ts config, new license and remove all barrel files (#1801) 2024-09-25 14:50:13 +02:00
tsconfig.json 👌 Introduce Spaces 2026-03-25 18:17:05 +01:00