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.

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