Node.js Express API with File Upload and Linear Integration
This example in Node.js:
Accepts a file upload from a user (image or log).
Uploads the file to Cloudinary (a free cloud image host) or AWS S3.
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
.env configuration🧠 Step 4: index.js – Express app
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.
PreviousHandling file uploads from users, for example, imagesNextNode.js Express API with File Upload + Linear Integration (using AWS S3)
Last updated