Merge pull request #257 from panta82/main

Fix issue: Broken pasted image upload
This commit is contained in:
viper151
2025-12-31 08:49:03 +01:00
committed by GitHub

View File

@@ -462,7 +462,7 @@ app.post('/api/projects/create', authenticateToken, async (req, res) => {
}); });
// Browse filesystem endpoint for project suggestions - uses existing getFileTree // Browse filesystem endpoint for project suggestions - uses existing getFileTree
app.get('/api/browse-filesystem', authenticateToken, async (req, res) => { app.get('/api/browse-filesystem', authenticateToken, async (req, res) => {
try { try {
const { path: dirPath } = req.query; const { path: dirPath } = req.query;
@@ -510,9 +510,9 @@ app.get('/api/browse-filesystem', authenticateToken, async (req, res) => {
suggestions.push(...directories); suggestions.push(...directories);
} }
res.json({ res.json({
path: targetPath, path: targetPath,
suggestions: suggestions suggestions: suggestions
}); });
} catch (error) { } catch (error) {