mirror of
https://github.com/transloadit/uppy.git
synced 2026-08-01 14:31:15 +00:00
* meta: use Yarn v3 instead of npm * Update CONTRIBUTING.md to fix linter errors * remove remaining npm commands * Update deps
32 lines
777 B
Text
32 lines
777 B
Text
---
|
|
layout: false
|
|
no-emoji: true
|
|
---
|
|
<!--
|
|
You can `yarn run web:inject-frontpagecodesample` to render this code snippet and
|
|
save it as a layout partial
|
|
-->
|
|
{% codeblock lang:bash %}
|
|
$ npm install @uppy/core @uppy/dashboard @uppy/instagram @uppy/tus
|
|
{% endcodeblock %}
|
|
|
|
{% codeblock lang:js %}
|
|
import Uppy from '@uppy/core'
|
|
import Dashboard from '@uppy/dashboard'
|
|
import Instagram from '@uppy/instagram'
|
|
import Tus from '@uppy/tus'
|
|
|
|
Uppy()
|
|
.use(Dashboard, {
|
|
trigger: '#select-files',
|
|
showProgressDetails: true
|
|
})
|
|
.use(Instagram, {
|
|
target: Dashboard,
|
|
companionUrl: 'https://companion.uppy.io'
|
|
})
|
|
.use(Tus, { endpoint: 'https://tusd.tusdemo.net/files/' })
|
|
.on('complete', (result) => {
|
|
console.log('Upload result:', result)
|
|
})
|
|
{% endcodeblock %}
|