Starts in:
1 DAY
4 HRS
5 MIN
8 SEC
Starts in:
1 D
4 H
5 M
8 S
Open Closed

Using IRemoteStreamContent with cropped image upload #2640


User avatar
0
basil@rabbitstack.com created
  • **ABP Framework version:**5.1.3

  • UI type: Angular

  • DB provider: EF Core

  • Identity Server Separated (Angular): no

  • Exception message and stack trace:

  • Steps to reproduce the issue:" Aim: upload image with cropper & IRemoteStreamContent same as the profile picture upload

    Create new Module (Add to the solution: Yes) Module: MicroLearning modules\MicroLearning.Application.Contracts (project) Courses\CourseImageInput.cs modules\MicroLearning\MicroLearning.HttpApi (project) MicroLearningHttpApiModule.cs Courses\CourseController.cs

run the base solution's host project ... dotnet run ..\angular\projects\MicroLearning> abp generate-proxy -t ng -m microLearning --target micro-learning

generated proxy ..\angular\projects\MicroLearning\projects\micro-learning\src\lib\proxy\courses\course.service.ts created a course-detail page to handle the image crop and upload ..\angular\projects\MicroLearning\projects\micro-learning\src\lib\courses\course\detail-components\course-detail.component.ts


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

    hi See https://support.abp.io/QA/Questions/1174/

  • User Avatar
    0
    basil@rabbitstack.com created

    I managed to get the upload to work but I had to create my own proxy as follows My understanding is that the generated proxy should work?

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We will fix this in angular proxy, Thanks.

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