so, I set up uppy on the frontend and integrated uppy-server into an existing express app. however I can’t seem to figure out what URL to use to upload to uppy-server. I’m sure I’m missing s.th. obvious here.
server config:
const options = {
debug: true,
secret,
// ...
server: {
host: `localhost:3000`,
protocol: 'http',
// path: '/upload',
},
filePath: './uploads/'
};
I’ve tried the simplest possible setup with just a HTML form:
<form action="http://localhost:3000" method="post">
<input type="file" name="files[]" multiple="">
<button type="submit">Upload</button>
</form>
but that doesn’t work. – I’m getting a 404 error.
similarly I tried
const uppy = Uppy({
debug: true,
});
uppy.use(XHRUpload, {
endpoint: 'http://localhost:3000/',
});
but to no avail.