mirror of
https://github.com/transloadit/uppy.git
synced 2026-08-01 14:31:15 +00:00
While the frameworks have good alternatives now with new components and hooks, Uppy is also popular in 'vanilla' JS setups without frameworks using the CDN bundle. Consumers of this were left with no viable alternative so it's sensible to bring back status bar and drag drop for the CDN publish (at least until we also publish/document using hooks via CDN). The framework packages don't really need this, as the alternatives are viable there. - Bring back `@uppy/status-bar` and `@uppy/drag-drop` from git tag `4.18.1` (latest release before 5.0) - Put exports maps on both packages - Put both packages in the CDN bundle - Version appropriately with changesets - Override existing locale keys. Unfortunately now that status-bar was merged into dashboard, the keys need to exist in both places but our tooling was setup to error when the same keys are found. Now it just overrides the existing key (to the same value in this case)
1.4 KiB
1.4 KiB
@uppy/drag-drop
Droppable zone UI for Uppy. Drag and drop files into it to upload.
Uppy is being developed by the folks at Transloadit, a versatile file encoding service.
Example
import Uppy from '@uppy/core'
import DragDrop from '@uppy/drag-drop'
const uppy = new Uppy()
uppy.use(DragDrop, {
target: '#upload',
})
Installation
$ npm install @uppy/drag-drop
Alternatively, you can also use this plugin in a pre-built bundle from
Transloadit’s CDN: Smart CDN. In that case Uppy will attach itself to the
global window.Uppy object. See the
main Uppy documentation for instructions.
Documentation
Documentation for this plugin can be found on the Uppy website.