Nextcloud PHP API (master)

IConversionProvider

This interface is implemented by apps that provide a file conversion provider

Tags
since
31.0.0

Table of Contents

Methods

convertFile()  : resource|string
Convert a file to a given MIME type
getSupportedMimeTypes()  : array<int, ConversionMimeProvider>
Get an array of MIME type tuples this conversion provider supports

Methods

convertFile()

Convert a file to a given MIME type

public convertFile(File $file, string $targetMimeType) : resource|string
Parameters
$file : File

The file to be converted

$targetMimeType : string

The MIME type to convert the file to

Tags
since
31.0.0
Return values
resource|string

Resource or string content of the file


        
On this page

Search results