<cfzipparam>
The cfzipparam tag is always a child tag of the cfzip tag. See tag <cfzip> for more details.
This tag cannot have a body.
This tag is also supported within <cfscript>
Requires Extension: Compress Tags and functions for Jakarta EE (Lucee 7+)
<cfzipparam
charset=string
content=any
entryPath=string
filter=any
filterDelimiters=string
prefix=string
source=string
recurse=boolean
password=string
encryptionalgorithm=string
>
| Attribute | Description |
|---|---|
charset
string, optional
|
edit
Converts string content into binary data before putting it into a ZIP or JAR file. Used only when cfzip action="zip" and the cfzipparam content is a string. Examples of character sets are:
|
content
any, optional
|
edit
Content written to the ZIP or JAR entry. Used only when cfzip action="zip". Valid content data types are binary and string. If you specify the content attribute, you must specify the entrypath attribute. |
entryPath
string, optional
|
edit
Pathname used:
|
filter
any, optional
|
edit
Optional filter. Can be either a wildcard filter, e.g. "m*", or a UDF/Closure which accepts the file/directory name and returns a boolean value to indicate whether that item should be included in the result or not. |
filterDelimiters
string, optional
|
edit
Optional when passing a filter pattern. This value is used as a delimiter for the patterns. Default is the pipe "|" character. |
prefix
string, optional
|
edit
String added as a prefix to the ZIP or JAR entry. Used only when cfzip action="zip". |
source
string, optional
|
edit
Source directory or file. Used only when cfzip action="zip". Specified file(s) are added to the ZIP or JAR file:
|
recurse
boolean, optional
|
edit
Recurse the directory to be zipped, unzipped, or deleted, as specified by the cfzip parent tag. (optional, default=yes) |
password
string, optional
|
edit
Password for the file(s) added via cfzipparam |
encryptionalgorithm
string, optional
|
edit
Supported algorithms are:
|
Usage Notes
editSince Lucee 7.1, zip functionality moved from core to the Compress extension. It is included in the full jar.
Examples
editThere are currently no examples for this tag.
See also
- Zip files
- <cfzip>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)