Skip to content

Full example with a simple form, upload client & server side

License

Notifications You must be signed in to change notification settings

yanick/svelte-kit-file-upload

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

svelte-kit-file-upload

Full example with a simple form, the script client-side, and the upload server-side.

The pieces:

  • svelte.config.js -- set the upload plugin for development mode.
  • src/server.mjs -- the prod server. Orchestrate between the svelte kit app and the upload middlewares.
  • src/lib/uploadPlugin.mjs -- the middleware that takes care of the uploads to the endpoint '/upload'.
  • src/lib/components/UppyDashboard.svelte -- the frontend component using Uppy that talks to the /upload endpoint.

There isn't a lot of CSS and form design. Not very fun but it works!

About

Full example with a simple form, upload client & server side

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.5%
  • Svelte 30.4%
  • HTML 9.1%