Base64 field: Difference between revisions
Allow ToC |
Actually leave in as not redirect |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{fieldtypes}} | {{fieldtypes}} | ||
== Description == | == Description == | ||
Base64 encoded data. | This field store Base64 encoded data. This may be useful for storing the binary data of small files (e.g. logos, avatars, etc.). | ||
== | == Inheritance == | ||
* [[:Category:EPrints_Metadata_Fields|Metadata field]] | |||
** [[Id field]] | |||
*** [[Text field]] | |||
**** [[Longtext field]] | |||
***** [[Base64 field]] | |||
== Additional Properties == | |||
As for [[Longtext field#Additional_Properties|Longtext fields]]. | |||
| | |||
== Required Phrases == | == Required Phrases == | ||
No additional phrases. | No additional phrases beyond those required for [[Longtext field#Required_Phrases|Longtext fields]]. | ||
== Database == | == Database == | ||
| Line 30: | Line 23: | ||
== API == | == API == | ||
See [[API:EPrints/MetaField/Base64|API page]]. | |||
== Examples == | == Examples == | ||
Most basic example. | |||
{ | { | ||
name => 'base64_data', | name => 'base64_data', | ||
Latest revision as of 09:45, 9 July 2024
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Metadata Fields: Arclanguage - Base64 - Bigint - Boolean - Compound - Counter - Dataobjref - Date - Decimal - Email - Fields - Float - Id - Idci - Image - Int - Itemref - Keywords - Langid - Longtext - Longtext_counter - Multilang - Multipart - Name - Namedset - Pagerange - Recaptcha - Recaptcha3 - Relation - Search - Secret - Set - Storable - Subject - Subobject - Text - Time - Timestamp - Url - Uuid
Description[edit]
This field store Base64 encoded data. This may be useful for storing the binary data of small files (e.g. logos, avatars, etc.).
Inheritance[edit]
Additional Properties[edit]
As for Longtext fields.
Required Phrases[edit]
No additional phrases beyond those required for Longtext fields.
Database[edit]
Base64 fields are stored in the database as
fieldname LONGTEXT
API[edit]
See API page.
Examples[edit]
Most 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',
}