You are here: Symbol Reference
> dtSearch.Engine Namespace
> ExtractionOptions Class
> ExtractionOptions Properties
> AllowedExtensions Property
Close
dtSearch .NET Standard API 2021.02
ExtractionOptions.AllowedExtensions Property

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

public string 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 AllowedExtension, 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". 

Separate extensions with spaces. Do not include the "." in each extension. */

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