ibexa

Path

ez publish / user manual / 5.x / multi upload / setting file "ezmultiupload...


Caution: This documentation is for eZ Publish legacy, from version 3.x to 5.x.

Setting file "ezmultiupload.ini.append.php"

In ezmultiupload.ini.append.php, you can set up available file types for uploading per class or/and subtree node.

The default settings are as following.

<?php /*
 
[MultiUploadSettings]
AvailableClasses[]
AvailableClasses[]=folder
AvailableClasses[]=gallery
 
AvailableSubtreeNode[]
 
MultiuploadHandlers[]
 
[FileTypeSettings_folder]
FileType[]
FileType[]=*.odt
FileType[]=*.flv
FileType[]=*.xap
FileType[]=*.doc
 
[FileTypeSettings_gallery]
FileType[]
FileType[]=*.jpg
FileType[]=*.png
FileType[]=*.gif
 
*/ ?>

"AvailableClasses[]=folder" and "[FileTypeSettings_folder]" is a pre-defined set.
Therefore, with the default setting, the node created by “Folder Class” can upload only ".odt file", ".flv file", ".xap file" and the ".doc file".

Here is an example of using AvailableSubtreeNode.

<?php /*
 
[MultiUploadSettings]
AvailableSubtreeNode[]=69
 
[FileTypeSettings_69]
FileType[]
FileType[]=*.jpg
FileType[]=*.png
FileType[]=*.gif
 
*/ ?>

"AvailableSubtreeNode[]=69" and " [FileTypeSettings_69]" becomes a pre-defined set.
Therefore, the node (node_id=69) can now upload " .jpg file "," .png file " and " .gif file".

The Filetype settings can use the regular expression.

Ricardo Correia (21/01/2013 2:47 pm)

Ricardo Correia (21/01/2013 2:47 pm)


Comments

There are no comments.