Node.js Express API with File Upload and Linear Integration

This example in Node.js:

  1. Accepts a file upload from a user (image or log).

  2. Uploads the file to Cloudinary (a free cloud image host) or AWS S3.

  3. Creates an issue in Linear with a link to the uploaded file.

Requirements:

  • A free Cloudinary account or AWS S3

  • A Linear API key

Step 1: Install dependencies

npm install express multer axios dotenv cloudinary

📁 Step 2: Project structure

project/

├── index.js
├── .env

🛠️ Step 3: .env configuration


🧠 Step 4: index.js – Express app


🧪 Step 5: Test it

Use Postman or curl to send a POST request:

Output

If successful:

  • The file is uploaded to Cloudinary.

  • A Linear issue is created with the file link.

  • Receive a JSON response with the Linear issue URL.

Last updated