Merhabalar , uppy üzerinden Google Drive , Dropbox vs gibi yerlerden dosya aktarımı yapmaya çalışıyorum ancak dökümanda anlatılan bir yeri anlamadım. Yardımcı olabilir misiniz ?
https://uppy.io/docs/companion/#Plugging-into-an-existing-express-server
import express from 'express'
import bodyParser from 'body-parser'
import session from 'express-session'
import companion from '@uppy/companion'
const app = express()
// Companion requires body-parser and express-session middleware.
// You can add it like this if you use those throughout your app.
//
// If you are using something else in your app, you can add these
// middlewares in the same subpath as Companion instead.
app.use(bodyParser.json())
app.use(session({ secret: 'some secrety secret' }))
const options = {
providerOptions: {
drive: {
key: 'GOOGLE_DRIVE_KEY',
secret: 'GOOGLE_DRIVE_SECRET',
},
},
server: {
host: 'localhost:3020',
protocol: 'http',
// This MUST match the path you specify in `app.use()` below:
path: '/companion',
},
filePath: '/path/to/folder/',
}
app.use('/companion', companion.app(options))
express , express-session vs gibi middleware oluşturmamı istemiş. Bu kısmı anlayamadım ? tam olarak ne yapmamı istiyor ?