You misunderstand me. I would have a different path, for example admin.config to Insert Hyperlink and for file upload.
Like
<security name="FilesGalleryPath">~/upload/dokument/</security>
<security name="HyperlinkGalleryPath">~/</security> New! (When I click the browse button in the Insert Hyperlink dialog )