Base64 field
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Metadata Fields: Base64 - Bigint - Boolean - Compound - Counter - Date - Email - Float - Id - Idci - Int - Itemref - Keywords - Longtext - Longtext_counter - Multilang - Name - Namedset - Pagerange - Recaptcha - Set - Subject - Text - Time - Timestamp - Url
Description
Base64 encoded data.
Inheritance
Properties
As for text fields with the following differences...
name | default | description |
input_rows | n/a | This property is taken from the repository configuration. |
maxlength | 65535 | Can be overridden in the field definition. |
Required Phrases
No additional phrases.
Database
Base64 fields are stored in the database as
fieldname LONGTEXT
API
See API page.
Examples
A basic example.
{ name => 'base64_data', type => 'base64', }
Limit the maximum size of file data that can submitted to 2 MiB.
{ name => 'file_data', type => 'base64', maxlength => '2097152', }
Displayed <textarea> should have a height of five rows for entering this metadata.
{ name => 'code', type => 'base64', input_rows=> '5', }