diff --git a/index.js b/index.js index 76983e7..b52440d 100644 --- a/index.js +++ b/index.js @@ -170,7 +170,8 @@ function registerListener(session, options, callback = () => {}) { if (typeof options.onCompleted === 'function') { options.onCompleted({ - fileName: item.getFilename(), + fileName: item.getFilename(), // Just for backwards compatibility. TODO: Remove in the next major version. + filename: item.getFilename(), path: savePath, fileSize: item.getReceivedBytes(), mimeType: item.getMimeType(),