Codem\DamnFineUploader\EditableUploadField
Synopsis
class EditableUploadField
extends EditableFileField
{
- // members
- private static string $table_name = 'EditableUploadField';
- private static string $singular_name = 'File Upload Field - Drag and Drop';
- private static string $plural_name = 'File Upload Fields - Drag and Drop';
- private static boolean $run_migration_1 = true;
- private static boolean $run_migration_manymanyhasmany = false;
- private static boolean $run_migration_allowedmimetypedeprecation = false;
- private static array $db = ;
- private static array $defaults = ;
- // methods
- public void onBeforeWrite()
- public void requireDefaultRecords()
- public void getCMSFields()
- // Inherited methods from EditableDamnFineUploader
- protected UppyField getUploaderField()
- public SubmittedUploadField getSubmittedFormField()
- public null getValueFromData()
- public void getFormField()
- // Inherited methods from Migrations
- protected void migrationDeprecateFineUploader()
- protected void migrationManyManyHasMany()
- protected void migrateAllowedMimeTypes()
- // Inherited methods from CMSFieldConfigurator
- public static float get_php_max_file_size()
- public void getPHPMaxFileSizeMB()
- public array getAllowedMimeTypes()
- public array getMimeTypes()
- public FieldList addGenericFields()
Hierarchy
Extends
- SilverStripe\UserForms\Model\EditableFormField\EditableFileField
Uses
Members
private
- $db
- $defaults
—
array
Add default values to database - $plural_name
- $run_migration_1
- $run_migration_allowedmimetypedeprecation
- $run_migration_manymanyhasmany
- $singular_name
- $table_name
protected
- $submitted_form_field — Codem\DamnFineUploader\SubmittedUploadField
Methods
public
- getCMSFields()
- onBeforeWrite() — Uppy is the only supported field implementation for now
- requireDefaultRecords() — Require default records / perform migration handling on dev/build
Inherited from Codem\DamnFineUploader\EditableDamnFineUploader
protected
- getUploaderField() — Get the uploader field, in the future this will return a field based on the implementation value
public
- getFormField() — Return the form field used for uploads
- getSubmittedFormField() — Get the submitted for field
- getValueFromData() — The value returned by this value is null, when this method is called any files in the request are linked to the submitted upload field Note $data param can be passed to this method by controller but is not present in EditableFileField
Inherited from Codem\DamnFineUploader\Migrations
protected
Inherited from Codem\DamnFineUploader\CMSFieldConfigurator
public
- addGenericFields()
- getAllowedMimeTypes() — Get the allowed mime types, based on the selected file types
- getMimeTypes() — This is pinched from MimeUploadValidator
- getPHPMaxFileSizeMB()
- get_php_max_file_size()