Resource functions
                        - get_resource_field_data
 - create_resource
 - delete_resource
 - copy_resource
 - get_resource_log
 - update_resource_type
 - get_resource_path
 - get_resource_data
 - get_alternative_files
 - get_resource_types
 - add_alternative_file
 - delete_alternative_file
 - upload_file
 - upload_file_by_url
 - upload_multipart
 - get_related_resources
 - resource_log_last_rows
 - replace_resource_file
 - get_resource_all_image_sizes
 - put_resource_data
 - update_related_resource
 - relate_all_resources
 - get_edit_access
 - get_resource_access
 - resource_file_readonly
 
Collection functions
                        Search functions
                        
                                            IIIF
                        
                                            Metadata functions
                        User functions
                        
                                            System
                        
                                            Message functions
                        
                                            Plugin functions
                        - consentmanager_get_consents
 - licensemanager_get_licenses
 - consentmanager_get_consent
 - consentmanager_delete_consent
 - consentmanager_batch_link_unlink
 - consentmanager_link_consent
 - consentmanager_unlink_consent
 - consentmanager_create_consent
 - consentmanager_update_consent
 - consentmanager_get_all_consents
 - consentmanager_get_all_consents_by_collection
 - consentmanager_save_file
 
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").