api/services/Uploader.js
// (called when a read or write error occurs)
(called when a read or write error occurs)
( called when a read or write error occurs )
function gc(err) {
            sails.log.debug("Garbage collecting file '" + file.filename + "' located at '" + fileSavePath + "'");
            fs.unlink(fileSavePath, function (gcErr) {
                if (gcErr) {
                    return done([err].concat([gcErr]));
                } else {
                    return done(err);
                }
            });
        }
function gc ( err ) { sails . log . debug ( "Garbage collecting file '" + file . filename + "' located at '" + fileSavePath + "'" ) ; fs . unlink ( fileSavePath , function ( gcErr ) { if ( gcErr ) { return done ( [ err ] . concat ( [ gcErr ] ) ) ; } else { return done ( err ) ; } } ) ; }
(called when a read or write error occurs)
( called when a read or write error occurs )