Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uppy/core

Package Overview
Dependencies
Maintainers
5
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uppy/core

Core module for the extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:

  • 4.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
243K
decreased by-9.71%
Maintainers
5
Weekly downloads
 
Created

What is @uppy/core?

@uppy/core is a modular JavaScript file uploader that integrates with various file sources and provides a highly customizable and extensible API for handling file uploads.

What are @uppy/core's main functionalities?

File Selection

This feature allows users to select files from their local system using a customizable dashboard interface.

const Uppy = require('@uppy/core');
const Dashboard = require('@uppy/dashboard');

const uppy = Uppy();
uppy.use(Dashboard, {
  inline: true,
  target: 'body'
});

File Upload

This feature enables the uploading of selected files to a specified endpoint using XHR (XMLHttpRequest).

const Uppy = require('@uppy/core');
const XHRUpload = require('@uppy/xhr-upload');

const uppy = Uppy();
uppy.use(XHRUpload, {
  endpoint: 'https://my-upload-endpoint.com/upload'
});

uppy.upload().then((result) => {
  console.log('Upload complete:', result);
});

Progress Tracking

This feature provides a progress bar to track the upload progress of files.

const Uppy = require('@uppy/core');
const ProgressBar = require('@uppy/progress-bar');

const uppy = Uppy();
uppy.use(ProgressBar, {
  target: 'body',
  hideAfterFinish: false
});

File Validation

This feature allows for custom validation of files before they are uploaded, such as checking file size or type.

const Uppy = require('@uppy/core');

const uppy = Uppy();
uppy.on('file-added', (file) => {
  if (file.size > 1000000) { // 1MB
    uppy.removeFile(file.id);
    alert('File is too large!');
  }
});

Other packages similar to @uppy/core

Keywords

FAQs

Package last updated on 31 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc