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.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 13, 2025, 04:08