diff --git a/server/src/Core/Providers/Base/BaseVOD.ts b/server/src/Core/Providers/Base/BaseVOD.ts index 490a4bc0..e84b7997 100644 --- a/server/src/Core/Providers/Base/BaseVOD.ts +++ b/server/src/Core/Providers/Base/BaseVOD.ts @@ -2574,7 +2574,10 @@ export class BaseVOD { Config.getInstance().cfg("file_chown_uid"), Config.getInstance().cfg("file_chown_gid") ); - fs.chmodSync(fullpath, Config.getInstance().cfg("file_chmod")); + fs.chmodSync( + fullpath, + parseInt(Config.getInstance().cfg("file_chmod"), 8) + ); } } }