JavaScript file upload libraries

Updated Nov 2026

JavaScript file upload libraries send files from a browser to a server or storage service. Large files travel in chunks so that an interrupted upload can resume from the last completed piece. These libraries handle the profile photos, document attachments, and video uploads in web apps.

Popularity

tus-js-client has the most monthly downloads in this comparison, at 12.0M.

LibraryMonthly downloadsStarsLast releaseLicense
tus-js-client
12.0M
2.6KJan 2025MIT
Uppy
8.1M
31.1KNov 2026MIT
dropzone
3.2M
18.4KSep 2026MIT
FilePond
1.6M
16.4KNov 2026MIT
@uploadcare/upload-client
1.1M
64Nov 2026MIT
UploadThing
1.0M
5.4KAug 2025MIT
@uploadcare/file-uploader
594.4K
113Nov 2026MIT
@rpldy/uploady
237.1K
1.3KNov 2025MIT
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

tus-js-client

Uploads files to a tus server and resumes an interrupted upload from where it stopped.

Downloads / mo
12.0M
Stars
2.6K
Last release
4.3.1
License
MIT

Strengths

  • Finds earlier uploads to resume. findPreviousUploads lists started uploads for resumeFromPreviousUpload to continue.

Limitations

  • Needs a tus server. Tus requires both a client and a matching server integration.

Quickstart

From README.md
$ npm install tus-js-client
import * as tus from 'tus-js-client'
input.addEventListener('change', function (e) {
  // Get the selected file from the input element
  var file = e.target.files[0]

  // Create a new tus upload
  var upload = new tus.Upload(file, {
    endpoint: 'http://localhost:1080/files/',
    retryDelays: [0, 3000, 5000, 10000, 20000],
    metadata: {
      filename: file.name,
      filetype: file.type,
    },
    onError: function (error) {
      console.log('Failed because: ' + error)
    },
    onProgress: function (bytesUploaded, bytesTotal) {
      var percentage = ((bytesUploaded / bytesTotal) * 100).toFixed(2)
      console.log(bytesUploaded, bytesTotal, percentage + '%')
    },
    onSuccess: function () {
      console.log('Download %s from %s', upload.file.name, upload.url)
    },
  })

  // Check if there are any previous uploads to continue.
  upload.findPreviousUploads().then(function (previousUploads) {
    // Found previous uploads so we select the first one.
    if (previousUploads.length) {
      upload.resumeFromPreviousUpload(previousUploads[0])
    }

    // Start the upload
    upload.start()
  })
})

Coordinates browser file uploads through a shared state manager and optional interface and transport plugins.

Downloads / mo
8.1M
Stars
31.1K
Last release
6.3.2
License
MIT

Strengths

  • Adds upload features through plugins. Choose interface and transport plugins around the same upload state.
  • Continues interrupted transfers with Tus. Add the Tus plugin to resume uploads after a lost connection.

Limitations

  • Core needs a transport plugin. Install an uploader plugin to transfer files to the server.
  • Type checks need server validation. Validate uploaded content on the server; browser metadata is only guidance.

Quickstart

From xhr.mdx
$ npm install @uppy/core @uppy/dashboard @uppy/xhr-upload
import Uppy from '@uppy/core'
import Dashboard from '@uppy/dashboard'
import XHR from '@uppy/xhr-upload'

import '@uppy/core/css/style.min.css'
import '@uppy/dashboard/css/style.min.css'

new Uppy()
  .use(Dashboard, { inline: true, target: 'body' })
  .use(XHR, { endpoint: 'https://your-domain.com/upload' })

Uppy examples

From open-source projects on GitHub

Adds drag-and-drop file selection, previews and XHR uploads to browser elements.

Downloads / mo
3.2M
Stars
18.4K
Last release
6.3.5
License
MIT

Strengths

  • Shows previews and upload progress. Display selected files and their progress in a customizable drop area.
  • Uploads large files in chunks. Enable chunking to send a large file as smaller requests.

Limitations

  • Chunking excludes grouped file requests. Choose chunking or uploadMultiple; they cannot be enabled together.
  • Replacing handlers removes default behavior. Add event listeners unless deliberately replacing the default interface behavior.

Quickstart

From README.md
$ npm install dropzone
import { Dropzone } from "dropzone";

const dropzone = new Dropzone("div#myId", { url: "/file/post" });

Turns a file input into an upload interface with configurable server endpoints and chunk transfers.

Downloads / mo
1.6M
Stars
16.4K
Last release
4.32.14
License
MIT

Strengths

  • Continues partially uploaded chunks. Query the server offset and continue from the next expected chunk.
  • Adds image previews through plugins. Install the Image Preview plugin to display downscaled image previews.

Limitations

  • Uploads need configured server endpoints. Configure the server integration before files can upload asynchronously.
  • Type detection follows the browser. Supply a custom detector when the browser cannot identify the file type.

Quickstart

From Installation docs
$ npm install filepond
<link href="filepond.css" rel="stylesheet" />
<script src="filepond.js"></script>

<input type="file" />

<script>
    // Get a reference to the file input element
    const inputElement = document.querySelector('input[type="file"]');

    // Create a FilePond instance
    const pond = FilePond.create(inputElement);
</script>

FilePond examples

From open-source projects on GitHub

@uploadcare/upload-client

Uploads files to the Uploadcare Upload API, including multipart uploads for large files.

Downloads / mo
1.1M
Stars
64
Last release
6.25.1
License
MIT

Strengths

  • Uploads from URLs. Upload a file from a remote URL or reference an existing file by its UUID.

Quickstart

From README.md
$ npm install @uploadcare/upload-client
import { UploadClient } from '@uploadcare/upload-client'

const client = new UploadClient({ publicKey: 'YOUR_PUBLIC_KEY' })
client.uploadFile(fileData).then((file) => console.log(file.uuid))

UploadThing

Uploads files from the browser through presigned URLs requested from a typed backend file router.

Downloads / mo
1.0M
Stars
5.4K
Last release
7.7.4
License
MIT

Strengths

  • Typed upload functions. genUploader type-checks endpoints, route input, and callback data against the file router.

Quickstart

From Client API docs
$ npm install uploadthing
import { genUploader } from "uploadthing/client";

import type { UploadRouter } from "~/server/uploadthing";

export const { uploadFiles } = genUploader<UploadRouter>();

const response = await uploadFiles("routeEndpoint", {
  files: [],
});

@uploadcare/file-uploader

Adds an Uploadcare file uploader to web pages as web components.

Downloads / mo
594.4K
Stars
113
Last release
1.36.1
License
MIT

Quickstart

From README.md
$ npm install @uploadcare/file-uploader
<script type="module">
  import * as UC from "https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/file-uploader.min.js";

  UC.defineComponents(UC);
</script>
<link
  rel="stylesheet"
  href="https://cdn.jsdelivr.net/npm/@uploadcare/file-uploader@1/web/uc-file-uploader-regular.min.css"
/>

<uc-file-uploader-regular ctx-name="my-uploader"> </uc-file-uploader-regular>
<uc-config ctx-name="my-uploader" pubkey="YOUR_PUBLIC_KEY"></uc-config>

@rpldy/uploady

Provides the React context component that exposes Uploady upload hooks to the rest of an app.

Downloads / mo
237.1K
Stars
1.3K
Last release
1.13.0
License
MIT

Quickstart

From README.md
$ npm install @rpldy/uploady @rpldy/upload-button
import React from "react";
import Uploady from "@rpldy/uploady";
import UploadButton from "@rpldy/upload-button";

const App = () => (<Uploady
    destination={{ url: "https://my-server/upload" }}>
    <UploadButton/>
</Uploady>);

FAQ

UploadThing uploads files from the browser through presigned URLs that a backend file router requests. Its genUploader function generates a typed upload function that matches that file router.

Uppy is a modular file upload widget that keeps upload state in a core package. Interface plugins and uploader plugins, such as the Tus plugin for resumable transfers, attach to that core.

FilePond turns a file input into an upload interface with configurable server endpoints. It sends large files in chunks and continues a failed transfer from the offset the server expects.

Dropzone adds drag-and-drop file selection, previews, and upload progress to a browser element. It can split a large file into a series of chunked requests.

Add an uploading plugin to the core orchestrator.

The chunking and uploadMultiple settings cannot be used together.

For coding agents

Found your file upload library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official