Skip to content

Add File widget for native multipart uploads - #541

Merged
linkdata merged 1 commit into
mainfrom
codex/file-input-540
Nov 2, 2026
Merged

linkdata merged 1 commit into
mainfrom
codex/file-input-540

Conversation

@linkdata

@linkdata linkdata commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add ui.File and $.File for named native file inputs in application-owned multipart forms.
  • Submit the owning form with requestSubmit() when submit-on-change is enabled and files are selected. File controls never send WebSocket Input frames; this also stops the old fake-path frames from custom managed file inputs.
  • Document the optional HTML accept mask and the upload handler's authorization, CSRF, validation, and size-limit responsibilities.

Verification

  • go generate ./...
  • JAWS_REQUIRE_NODE=1 go test -race ./... -count=1
  • JAWS_REQUIRE_NODE=1 go test ./... -count=1
  • go vet ./..., go build ./..., gofmt -l .
  • staticcheck ./..., golangci-lint run, gosec ./...

Closes #540

@linkdata
linkdata merged commit 1f5afa2 into main Nov 2, 2026
7 checks passed
@linkdata
linkdata deleted the codex/file-input-540 branch November 2, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ui: add FileInput for native multipart uploads

1 participant