Fix issue: Broken pasted image upload

This commit is contained in:
Ivan Pantic
2025-12-09 22:12:45 +01:00
parent 1f4cd16b89
commit 19bb741af0
2 changed files with 9 additions and 6 deletions

View File

@@ -447,7 +447,7 @@ app.post('/api/projects/create', authenticateToken, async (req, res) => {
});
// 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 {
const { path: dirPath } = req.query;
@@ -495,9 +495,9 @@ app.get('/api/browse-filesystem', authenticateToken, async (req, res) => {
suggestions.push(...directories);
}
res.json({
res.json({
path: targetPath,
suggestions: suggestions
suggestions: suggestions
});
} catch (error) {