mirror of
https://github.com/chatmail/core.git
synced 2026-04-20 15:06:30 +03:00
- 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)
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]/)