Skip to content
Snippets Groups Projects
Commit e04359f4 authored by DenisDao57's avatar DenisDao57
Browse files

fix slash link pdf

parent 35607bb0
Branches upload-fix
No related tags found
1 merge request!15Upload fix
......@@ -19,7 +19,7 @@ export class ResourcesController {
@Param('filename') filename,
@Res({ passthrough: true }) res: Response,
): StreamableFile {
const filepath = `files\\${filename}`;
const filepath = `files/${filename}`;
if (!existsSync(filepath)) throw NOT_FOUND;
const file = createReadStream(filepath);
res.set({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment