diff --git a/apps/files/lib/Listener/LoadSidebarListener.php b/apps/files/lib/Listener/LoadSidebarListener.php
index b98df0d850455c95b2e6a9b227aadd18c1008883..cc99c102081a8ed95c5c138cee790473bc5c636d 100644
--- a/apps/files/lib/Listener/LoadSidebarListener.php
+++ b/apps/files/lib/Listener/LoadSidebarListener.php
@@ -39,6 +39,9 @@ class LoadSidebarListener implements IEventListener {
 		}
 
 		Util::addScript(Application::APP_ID, 'dist/sidebar');
+		// needed by the Sidebar legacy tabs
+		// TODO: remove when all tabs migrated to the new api
+		Util::addScript('files', 'fileinfomodel');
 	}
 
 }