luci-compat: upload.htm: expose root_directory and initial_directory
authorJo-Philipp Wich <jo@mein.io>
Mon, 20 Jan 2020 18:13:57 +0000 (19:13 +0100)
committerJo-Philipp Wich <jo@mein.io>
Mon, 20 Jan 2020 18:40:46 +0000 (19:40 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-compat/luasrc/view/cbi/upload.htm

index e610495380a87340a14cf4d69f944067636f5215..9dbce9b04732a607b927304b95d3bb86fafe9589 100644 (file)
@@ -7,7 +7,8 @@
                show_hidden = self.show_hidden,
                enable_remove = self.enable_remove,
                enable_upload = self.enable_upload,
-               root_directory = "/" --self.root_directory
+               root_directory = self.root_directory or "/",
+               initial_directory = self.initial_directory
        }
 }))%>></div>