Skip to content

feat: File Upload Progress - #17527

Open
ottomated wants to merge 10 commits into
mainfrom
form-upload-progress
Open

ottomated wants to merge 10 commits into
mainfrom
form-upload-progress

Conversation

@ottomated

Copy link
Copy Markdown
Contributor

doubly closes #14773 (rebase of #14878 onto v3)

This switches remote forms to use XHRs for uploading, which enables us to track upload progress for files!

<script>
  import { uploadForm } from './upload.remote';
</script>

<form {...uploadForm} enctype="multipart/form-data">
  <input {...uploadForm.fields.file.as('file')} />
  <p>Progress: {(uploadForm.fields.file.progress().percent * 100).toFixed(2)}%</p>
  <button>Upload</button>
</form>

@pkg-svelte-dev

pkg-svelte-dev Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Install the latest version of @sveltejs/kit from 0a98acc:

pnpm add https://pkg.svelte.dev/@sveltejs/kit/c/0a98acca7854deda37053950919c6d1831ac169e

Open in pkg.svelte.dev: https://pkg.svelte.dev/repos/kit/pr/17527

@changeset-bot

changeset-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0a98acc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@sveltejs/kit Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@svelte-docs-bot

Copy link
Copy Markdown

Comment thread packages/kit/src/runtime/client/remote-functions/form.svelte.js Outdated
Comment thread packages/kit/src/runtime/form-utils.js Outdated
Comment thread packages/kit/test/apps/async/test/test.js
Comment thread packages/kit/src/runtime/client/remote-functions/form.svelte.js

This branch has not been deployed

No deployments
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.

Streaming file uploads

1 participant