send_files_picker = async (folder, noSubdirs, inputId, req, res) => {
  res.set("SaltcornModalWidth", "1200px");
  res.sendWrap(req.__("Please select a file"), {
    above: [
      script({
        src: `/static_assets/${db.connectObj.version_tag}/bundle.js`,
        defer: true,
      }),
      script(
        domReady(
          `$("head").append('${link({
            rel: "stylesheet",
            href: `/static_assets/${db.connectObj.version_tag}/bundle.css`,
          })}')`
        )
      ),
      div({
        id: "saltcorn-file-manager",
        full_manager: "false",
        folder: folder,
        input_id: inputId,
        ...(noSubdirs ? { no_subdirs: "true" } : {}),
      }),
    ],
  });
}
@type {object}
@const
@namespace filesRouter
@category server
@subcategory routes