Open Closed

How to upload file by application services #1907


User avatar
0
fishlong created
  • ABP Framework version: v4.4.0
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

The solution consists of application services and angular, How does an application service receive an Excel file uploaded from angular?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can send files to application services via FormData in Angular.

    https://docs.abp.io/en/abp/4.4/Application-Services#working-with-streams https://developer.mozilla.org/en-US/docs/Web/API/FormData https://support.abp.io/QA/Questions/851/Cannot-use-file-upload-feature-in-one-of-our-Angular-component#answer-1ac114d5-8eeb-a5c4-2754-39fa5fc3947b

Made with ❤️ on ABP v9.1.0-preview. Updated on December 12, 2024, 07:15