diff --git a/lib/video.js b/lib/video.js index 3a687d3..e6b68f1 100644 --- a/lib/video.js +++ b/lib/video.js @@ -58,8 +58,9 @@ function list(stream, meta) { /** */ function request(client, meta) { - var file = fs.createReadStream(uploadPath + '/' + meta.name); - + //to go with larger file + var options = {flags: 'w', encoding: 'utf8',fd: null,mode: '0666'}; + var file = fs.createReadStream(uploadPath + '/' + meta.name,options); client.send(file); }