I have used Page Property "URL to Document" to get the document. Actually the requirement is, the editor should select file or folder. if it is folder we have to display all the files inside the folder. Is there any episerver property to select folder in the edit mode?
Check out the FolderBrowserProperty at Epicode. https://www.coderesort.com/p/epicode/wiki/FolderBrowserProperty.