Starts in:
1 DAY
12 HRS
32 MIN
15 SEC
Starts in:
1 D
12 H
32 M
15 S
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 November 20, 2024, 13:06