Nextcloud PHP API (master)

DownloadResponse extends Response
in package

Prompts the user to download the a file

Tags
since
7.0.0
template

S of int

template

C of string

template

H of array<string, mixed>

template-extends

Response<int, array<string, mixed>>

Table of Contents

Methods

__construct()  : mixed
Creates a response that prompts the user to download the file

Methods

__construct()

Creates a response that prompts the user to download the file

public __construct(string $filename, C $contentType[, S $status = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
$filename : string

the name that the downloaded file should have

$contentType : C

the mimetype that the downloaded file should have

$status : S = Http::STATUS_OK
$headers : H = []
Tags
since
7.0.0

        
On this page

Search results