Open Closed

Equivalent to ITempFileCacheManager, FileController and FileDto from Abp zero? #1485


User avatar
0
rkoepferl created

Hi, what is abp.io's equivalend or logical follower to using FileController and ITempFileCacheManager?

Problem to solve: Use a file as download or in <img> or <audio> html tags where bearer-token cannot be supplied. Therefore putting some data from an authenticated API into temp storage, which can be then downloaded from a temp url for a certain time span.

Or is there any ohter solution to play an audio blob via an authenticated API?


4 Answer(s)
  • User Avatar
    0
    alper created
    Support Team Director

    There's a stream support for the application services. Is that what you are looking for https://docs.abp.io/en/abp/latest/Application-Services#working-with-streams ?

  • User Avatar
    0
    rkoepferl created

    OK, looks promising. Does this work as the fileDto stuff worked.

    Basically: If I use a HTML audio element, it does do it's own request, leaving out the bearer token. So I cannot use authenticated api entpoints for the audio src URL.

    Does this help me here?

  • User Avatar
    0
    alper created
    Support Team Director

    you can use Authorize attribute on the methods of your streaming AppService

  • 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.

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 25, 2025, 11:10