yusueketk 7 лет назад
Родитель
Сommit
f4b41e08ce
1 измененных файлов с 0 добавлено и 15 удалено
  1. 0 15
      src/server/service/file-uploader/gridfs.js

+ 0 - 15
src/server/service/file-uploader/gridfs.js

@@ -46,21 +46,6 @@ module.exports = function(crowi) {
     });
   };
 
-  // // for larger file size
-  // // read a file and receive a stream
-  // var stream = Attachment.readById(objectid);
-
-  // // for smaller file size
-  // // read a file and receive a buffer
-  // Attachment.readById(objectid, function (error, buffer) {
-  //   debug('Failed to read a file with ' + buffer, error);
-  // });
-
-  // // remove file details and its content from gridfs
-  // Attachment.unlinkById(objectid, function (error, unlinkedAttachment) {
-  //   debug('Failed to remove ' + unlinkedAttachment + 'in gridFS', error);
-  // });
-
   lib.generateUrl = function (filePath) {
     return path.posix.join('/uploads', filePath);
   };