Skip to content

Is it possible to check if a file is a valid document and not some other file type renamed to .docx or some other office extension? #816

Open
@06needhamt

Description

@06needhamt

Is this a:

  • Issue with the OpenXml library
  • Question on library usage

Description

Is it possible to check if a file is a valid document and not some other file type renamed to .docx or some other office extension? I know this may be off-topic here but it is becoming an increasing problem for me as people are renaming other files e.g. videos to .docx and uploading them to my servers.

Information

  • .NET Target: .NET Core 3.1
  • DocumentFormat.OpenXml Version: Any version

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions