Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
joanfabregat committed Feb 23, 2024
1 parent 8720ed0 commit 864dadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const app = express();
const upload = multer({dest: tempDir});

app.post('/convert', upload.single('file'), (req, res) => {
if (!req.file.filename) {
if (!req.file?.filename) {
res.status(400);
res.send({error: 'No file uploaded'});
return;
Expand Down

0 comments on commit 864dadb

Please sign in to comment.