Skip to content
Devix Open Source

Playground

Turn the options and watch it change. The code below changes with it, in whichever framework you are using — copy it and you have what is on the screen.

Live
import { createFileUploader } from '@devix-labs/file-uploader';
import '@devix-labs/file-uploader/styles.css';

createFileUploader(document.querySelector('#target'), {
  autoUpload: false,
  accept: 'image/*,.pdf',
  maxSize: '2 MB',
  maxFiles: 5,
  thumbnails: true,
  paste: true,
  folders: true,
  duplicates: true
});

Every option here is in the documentation, along with the ones that are not worth a control.