You are here: C++ Support Classes > dtSearch Namespace > Classes > DExtractionOptions Class > DExtractionOptions::AllowedExtensions Data Member
dtSearch Text Retrieval Engine Programmer's Reference
DExtractionOptions::AllowedExtensions Data Member

If the dtsExoLimitExtensions flag is set, image and attachment filename extensions will be limited to the values listed in allowedExtensions.

DStringSetProperty AllowedExtensions;

The AllowedExtensions option provides a way to guard against execution of malware that may be embedded in documents. When an attachment or image is extracted, unless the filename extension is one of the listed extensions in AllowedExtensions, the filename will have the DefaultExtension appended to it. 

For example, if "exe" is not included in the list of AllowedExtensions, and if the DefaultExtension is ".data", then an attachment named "sample.exe" will be saved as "". AllowedExtensions is a null-delimited string set. 

Do not include the "." in each extension.