Files
chatmail-core/upload-server
Franz Heinzmann (Frando) 7d2105dbc9 Move file upload into SMTP send job.
- This adds params for the upload URL and local file path, so that the
actual upload can happen in the send job.
- This also moves the URL generation to the client side so that we can
  generate a valid URL before the upload (because the MIME rendering of
  the mail message happens earlier and we want to include the URL there)
2020-06-13 15:10:44 +02:00
..
2020-06-13 15:10:44 +02:00

deltachat-upload-server

Demo server for the HTTP file upload feature.

Usage

npm install
node server.js

Configure with environment variables:

  • UPLOAD_PATH: Path to upload files to (default: ./uploads)
  • PORT: Port to listen on (default: 8080)
  • HOSTNAME: Hostname to listen on (default: 0.0.0.0)
  • BASEURL: Base URL for generated links (default: http://[hostname]:[port]/)