Open Closed

Add filemanagement to microservice #1483


User avatar
0
rick@i-pulse.nl created

Hi,

I want to add te filemanagement module to my Microservice project(s). When I follow these steps it didn't work: https://docs.abp.io/en/commercial/latest/modules/file-management#file-management-module

  • I did the manual installation steps and it all build.
  • The user has permissions to the filemanager
  • Navigation added in MenuContributors
  • It will not appear in the menu
  • Is there a manual how to use the filemanager in other microservices? For example to manage images in the sample ProductService?

<br> <br>


3 Answer(s)
  • User Avatar
    0
    rick@i-pulse.nl created

    FileManagement is working now as module. But how can we use the filemanagement module for managing images in the productservice. For example

    We will change the default ProductService by adding an multiple image field and a manual field. Here we must be able to upload multiple images which are assigned to the product and also 1 or more documents.

    How can we fix this in the ProductService when using a Microservice project?

  • User Avatar
    0
    hikalkan created
    Support Team Co-Founder

    Hi,

    As I understand, all you want to do is to save an image/file/byte-array and retrieve it when you need. In this case, you don't need to the File Management module. You can directly use the BLOB storing system. In this case, you can save image (comes as stream or byte array) in the ProductAppService.CreateAsync method to the BLOB storage system (using a BLOB container as documented).

    File Management is an application that is used to manage folders and files by users. It uses the BLOB storage system under the hood. If you want to compare, File Management is Google Drive and BLOB Storing is file system or azure blob storrage (actually it has such integrations). So, you don't want to save your product's image to File Management (which is open to users and they can delete that image independently from the product create/edit pages).

    In this case, you will handle the HTTP API and UI layers yourself, and use BLOB storing system to save/read your image contents in your microservice. So, you should install one of the BLOB Storing providers.

  • User Avatar
    0
    ServiceBot created
    Support Team Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

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