Developer's Manual  Blocks  Property types  file

file

Allows selecting file from server disk.

The file type has one optional additional parameters ext. The parameter specifies the list of allowed file types (extensions).

Example

<?
$properties
= Array(
  
'file' => Array(
    
'type'     => 'file',
    
'value'    => '',
    
'label'    => 'Projetc file',
    
'ext'      => 'doc|txt|xls'
  
)
);
?>

The file type has File Manager assigned to it.

Please login to add comments.