uppy/examples/xhr-python
prakash e3f01a25f6
chore(deps): upgrade vite to 8 and the Svelte toolchain
- vite ^6.2/^6.3/^7.1/^8.0 -> ^8.1.5 (14 workspaces)
- @sveltejs/vite-plugin-svelte ^5/^7.1 -> ^7.2.0
- @sveltejs/kit ^2.49/^2.60 -> ^2.69.3
- @sveltejs/adapter-auto ^4 -> ^7.0.1
- svelte ^5.55.8 -> ^5.56.5
- vitest-browser-svelte ^2.1.1 -> ^3.0.0

These move together: vite-plugin-svelte 7 requires vite 7 or newer, and
@uppy/svelte was already on vite ^8.0.13.

One source change: examples/xhr-node/main.js imported two stylesheets from
`dist/style.css` while the neighbouring line already used `css/style.css`.
vite 8 resolves the stale paths strictly, so both are corrected.

svelte-check now logs "Loading Svelte config from Vite config failed" in
@uppy/svelte before falling back to svelte.config.js. It is noise from
@sveltejs/kit's config loader reacting to a hoisted install; all 235 files
are still checked (0 errors, 1 pre-existing warning).

Supersedes #6340.

Verified: yarn build (54/54), yarn typecheck (75/75), yarn check:ci,
yarn test (19/19).
2026-07-26 02:46:30 +05:30
..
.gitignore Cleanup examples (#5817) 2025-07-10 17:23:58 +02:00
index.html @uppy: upgrade biome and more improvements (#6244) 2026-05-21 12:28:03 +08:00
main.js Fix @uppy/examples (#6099) 2025-12-08 09:48:23 +01:00
package.json chore(deps): upgrade vite to 8 and the Svelte toolchain 2026-07-26 02:46:30 +05:30
README.md Cleanup examples (#5817) 2025-07-10 17:23:58 +02:00
requirements.txt Cleanup examples (#5817) 2025-07-10 17:23:58 +02:00
server.py Cleanup examples (#5817) 2025-07-10 17:23:58 +02:00

Uppy + Python Example

This example uses a Python Flask server and @uppy/xhr-upload to upload files to the local file system.

Run it

To run this example, make sure you've correctly installed the repository root:

corepack yarn install
corepack yarn build

That will also install the npm dependencies for this example.

Additionally, this example uses python dependencies. Move into this directory, and install them using pip:

corepack yarn workspace @uppy-example/python-xhr installPythonDeps

Then, again in the repository root, start this example by doing:

corepack yarn workspace @uppy-example/python-xhr start