Uppy-server is a server integration for Uppy file uploader.
It handles the server-to-server communication between your server and file storage providers such as Google Drive, Dropbox, Instagram, etc. See here for full documentation
npm install uppy-server
Uppy-server may either be used as pluggable express app, which you plug to your already existing server, or it may simply be run as a standalone server:
var express =var bodyParser =var uppy =var app =app...// be sure to place this anywhere after app.use(bodyParser.json())const options =providerOptions:google:key: 'GOOGLE_KEY'secret: 'GOOGLE_SECRET'server:host: 'localhost:3020'protocol: 'http'filePath: '/path/to/folder/'app
To enable uppy socket for realtime feed to the client while upload is going on, you call the
socket method like so.
...var server = appuppy
Please ensure that the required env varaibles are set before runnning/using uppy-server as a standalone server. See.
If you cloned the repo from gtihub and want to run it as a standalone server, you may also run the following command from within its directory
npm run start:production