Resource functions
Collection functions
Search functions
IIIF
Metadata functions
User functions
System
Message functions
Plugin functions

consentmanager_save_file

Add a file to a consent record or replace the existing one if present.

Variable Description Data type
$consent * The ID of the consent. int
$filename The filename of the file int
$filedata

The binary contents of the file to upload

IMPORANT - must be POSTed and not part of the query string. This does not use the HTTP file upload mechanism - it is simply a POST parameter.

string

Return values

True if successful, false if the extension is in the banned list or the user does not have write access to manage consent records (permissions "t" or "cm").