Skip to content

Commit 5553acc

Browse files
committed
fix
1 parent a56349b commit 5553acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const upload = multer({dest: tempDir});
2424
*/
2525
app.post('/convert', upload.single('file'), (req, res) => {
2626
try {
27-
if (!req.file.filename) {
27+
if (!req.file?.filename) {
2828
throw new Error('No file uploaded');
2929
}
3030
console.log(`Converting Office file "${req.file.originalname}" to PDF`);

0 commit comments

Comments
 (0)