Closed freder closed 6 years ago
you need to set the secret option like so:
const options = {
providerOptions: {
dropbox: {
key: '...',
secret: '...',
},
},
server: {
host: `localhost:${PORT}`,
protocol: 'http',
},
filePath: './uploads/',
secret: 'my-secrety-secret'
};
this secret is used by the server and is different from that provided by the dropbox api.
right, I just figured that out. — you should probably document that, since secret
is not mentioned in the example in the readme.
it's mentioned in the docs, see https://uppy.io/docs/server/#Options
hmm, I must have overlooked that. thanks you, @ifedapoolarewaju
I'm trying to get
uppy-server
to work with dropbox:but after connecting to dropbox / redirecting to
http://localhost:3000/dropbox/callback
I get this error:looks like
req.uppy.options.secret
isundefined
here https://github.com/transloadit/uppy-server/blob/master/src/server/controllers/callback.js#L24