diff --git a/lib/index.ts b/lib/index.ts index 0a92a5459..b4783cbf0 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -50,8 +50,10 @@ export const removeNewFileMenuEntry = function(entry: Entry | string) { /** * Get the list of registered entries from the upload menu + * + * @param {FileInfo} context the creation context. Usually the current folder FileInfo */ -export const getNewFileMenuEntries = function() { +export const getNewFileMenuEntries = function(context?: Object) { const newFileMenu = getNewFileMenu() - return newFileMenu.getEntries() + return newFileMenu.getEntries(context) }