I can't seem to get the FileGalleryPath to work correctly if set in code. I.E.
editor1.Setting("security:FilesGallaryPath") = "~/images"
The Downloadable Files dialog still opens with the location from the default.config, admin.config, or guest.config.