Open Closed

File Management Show File System #948


User avatar
0
joe@tronactive.com created
  • ABP Framework version: v4.2.1
  • UI type: MVC
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I installed the FileManagement module. I have configured it to use the FileSystem which all works good. But instead of keeping track of files using a Guid for name. i would like to just have the app scan a specific folder and show the folder system instead.

SO basically if I have a root default folder of I:\Dev\JML\TestFileSystem\ at his has a folder called XML and a folder PDFs with 2 different files each. It would just automatically show the file structure like below. And then when you create a folder and upload files to the folder it will rescan the structure and rebuild the nested directories and files. Not create them in the DB. Any help would be appreciated. Root --XML ---test.xml ---test2.xml --PDFs ---test.pdf ---test2.pdf


2 Answer(s)
  • User Avatar
    0
    cotur created

    Hi Joe,

    I am sorry but File Management module does not support the structure that you want, it is basically built on Blob Storing module and it has to store the folder structure in the database.

    You should implement your design because Blob Storing File System is using some rules that will not help you,

    For example

    Root Path: "C:\my-files" Tenant: NO (host) Container Name: "my-container" Blob Name: "my-blob"

    With those args, Blob Storing File System Storage will store the blob to following path "C:\my-files\host\my-container\my-blob"

    If we use it as a Tenant TenantId : ABCD1-EFGH2...

    Blob storing will store the blob to following path. "C:\my-files\tenants\ABCD1-EFGH2\my-container\my-blob"

  • User Avatar
    0
    joe@tronactive.com created

    Okay that makes sense. Thank you

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11