| |
filetype |
file format for object attachments
define -
create new filetype definition
filetype define AdminName
{FileType_DefineOption}
[force];
clone -
duplicate a filetype and set the properties for the new instance
filetype clone AdminName
define AdminName {FileType_EditOption}
[force];
edit -
update the filetype properties
filetype edit AdminName {FileType_EditOption} [force];
show -
print the filetype properties
filetype show AdminName [FileType_GetOption]
[Token_Option] [ExportFile_Option]
;
select
- extract filetypes on the base of query filters
filetype select AdminPatternList {Filter_Option} [FileType_GetOption]
[Token_Option]
[ExportFile_Option] ;
undefine
- remove a filetype from the database [all related files will be
deleted]
filetype undefine AdminName
;
KEYWORDs |
|
application |
the associated application menu |
|
description |
the filetype description |
|
extension |
the file extension for uploaded files |
|
force |
this flag allows to ignore errors during the creation/update |
|
hidden |
administration hidden objects are not visible/usable |
|
lifecycle |
list of lifecycles which support this filetype
for the object attachments |
|
image |
local path for the filetype icon to
upload |
|
imagedata |
base64 code for the filetype icon |
|
mimetype |
the file MIME type [format] for uploaded files |
|
moddate |
last modification date |
|
name |
the filetype name |
|
svnrev |
SVN repository revision number |
SAMPLES |
filetype define FT01 description "MYft" image "C:\Images\gificon.gif"
extension ".gif" mimetype "/gif/mime" !hidden;
filetype clone FT01 define "FT02" extension ".jpg"
;
filetype edit FT01 name FT03 !hidden;
filetype show FT01 get { name mimetype extension moddate }
token { "|" };
filetype show FT02;
filetype show 'FT02' get { name mimetype feature[MYFEAT1].value
} token { "|" "," ";" } ;
filetype select * get { name description extension mimetype
} token "|" ;
|
|
|