fix: admin/monitoring: file was displayed encoded
Massimo Melina committed
Aug 2, 2023 at 16:25 UTC
9387fd5c15e50178f2dfda92388c94c4754e6e4e
1 file changed
+1
-1
src/api.monitor.ts
+1
-1
@@ -85,7 +85,7 @@ const apis: ApiHandlers = {
85
agent: getBrowser(ctx.get('user-agent')),
86
archive: ctx.state.archive,
87
upload: ctx.state.uploadProgress,
88
- path: ctx.state.uploadPath
88
+ path: ctx.state.uploadPath && decodeURIComponent(ctx.state.uploadPath)
89
|| (ctx.fileSource || ctx.state.archive) && decodeURIComponent(ctx.path) // only uploads and downloads
90
}
91
}