Open Closed

File management #5994


User avatar
0
s.alshammari.c created

I use Blob storing on a file system and files are saved on BasePath when I create folders on file management UI its only created on database . is there a way to create those folders physically and files uploaded saved into them and not only on the database?

I use asp, sql server , and angular


5 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    No, The file management module does not support this, you need to implement it yourself

  • User Avatar
    0
    s.alshammari.c created

    if I have like 100k+ files in the same Basepath folder will I face any performance issue ? or ABP can handle it

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    It's better to use Minio or Azure blob if you have many files.

    • https://docs.abp.io/en/abp/latest/Blob-Storing-Azure
    • https://docs.abp.io/en/abp/latest/Blob-Storing-Minio
  • User Avatar
    0
    s.alshammari.c created

    I am building file storage application to be consumed a cross my other apps and I am storing files on server as blobs , so having many files will lead to performance problems if I didn't use Azure blob or Minio ?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    https://docs.abp.io/en/abp/latest/Blob-Storing-File-System#file-path-calculation https://docs.abp.io/en/abp/latest/Blob-Storing-File-System#extending-the-file-system-blob-provider

    You can replace the default file path calculator:

    [ExposeServices(typeof(IBlobFilePathCalculator))]
    public class MyBlobFilePathCalculator: IBlobFilePathCalculator, ITransientDependency
    {
        public virtual string Calculate(BlobProviderArgs args)
        {
            .....
        }
    }
    

    so having many files will lead to performance problems if I didn't use Azure blob or Minio ?

    I'm not sure, but because Minio and Azure blob are pro file storage sysetm. They usually have better performance and other useful features.

    You can deploy the minio server by yourself, which is more recommended.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 11, 2024, 11:11