You are here: C++ API > Classes > dtsExtractionOptions Structure > dtsExtractionOptions::allowedExtensions Data Member
Close
dtSearch Text Retrieval Engine Programmer's Reference
dtsExtractionOptions::allowedExtensions Data Member

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

Syntax
C++
const char * 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 "sample.exe.data". allowedExtensions is a null-delimited string set. 

Do not include the "." in each extension.

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.