Jump to content

Hard-coded reference to \IPS\File\Amazon in Downloads app


KT Walrus

Recommended Posts

Posted

Could you replace:

        /* If it's an AWS file just redirect to it */
        if ( $file instanceof \IPS\File\Amazon )
        {
            \IPS\Output::i()->redirect( $file->generateTemporaryDownloadUrl() );
        }

in the Downloads app (or any other places that $file->generateTemporaryDownloadUrl() is called) to look up the method in the storage method used for the file?

I want to implement  generateTemporaryDownloadUrl() in a storage method I'm coding now and have it used by IPS apps such as the Download app.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...