Skip to main content

ZipFileItem.FileName Property

SECURITY-RELATED CONSIDERATIONS

Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.

Gets the name of the file from which a zip item is created.

Namespace: DevExpress.Compression

Assembly: DevExpress.Docs.v25.2.dll

NuGet Package: DevExpress.Document.Processor

Declaration

public string FileName { get; }

Property Value

Type Description
String

A string that is the file name.

Remarks

The FileName property contains the path to the file from which a zip item has been created. This information is not stored in an archive file when it is saved using the ZipArchive.Save method.

The FileName property is only relevant for the ZipFileItem instance. For zip items created from sources other than files, the FileName is null.

See Also