Skip to main content
bkashava
Staff
Staff
January 7, 2026

Troubleshooting Tip: FortiWeb blocks allowed file uploads with 'Illegal file type' errors

  • January 7, 2026
  • 0 replies
  • 403 views
Description

This article describes how to troubleshoot FortiWeb file upload blocks when a File Security Policy is configured to allow specific file types, but uploads are still denied with the error messages 'File name [N/A]: Illegal file type' or 'File name [blob]: Illegal file type'.

Scope

FortiWeb.

Solution

This scenario typically occurs when FortiWeb is correctly enforcing file security rules, but the application framework handling the upload does not expose the filename or file content in a predictable manner. For standard configuration steps to create File Security Rules and File Security Policies, refer to Technical Tip: Configuring File Security Policy to limit file uploads by file type/size and block viruses.

 

This article focuses only on troubleshooting the specific error conditions below.

 

Observed symptoms:

 

Attack logs show one or more of the following messages:

  • File name [N/A]: Illegal file type
  • File name [blob]: Illegal file type

 

The uploads may involve legitimate file types such as PDF, JPG, or PNG.


kb1.png 

Why this occurs:

 

File name [N/A]: Illegal file type

 

Recent FortiWeb versions enforce stricter handling of uploads with empty metadata. If a multipart upload contains:

  • An empty filename, and,
  • No detectable file content at the point of inspection.

 

FortiWeb cannot classify the file and blocks the upload by default. This behavior is commonly observed when application frameworks abstract or omit the filename during upload processing. Allowing the Empty File Name special file type enables FortiWeb to continue evaluation instead of immediately rejecting the request.

 

File name [blob]: Illegal file type

 

This occurs when the application sends the uploaded file as a generic object (for example, 'blob') rather than a traditional filename with an extension. FortiWeb validates files using the following logic:

  • If only Whole Suffix Files are selected, FortiWeb validates the file using the filename extension.
  • If only content-based file types are selected, FortiWeb validates the file using signatures in the file payload.
  • If both Whole Suffix Files and content-based file types are selected, FortiWeb validates both the filename extension and the file content.

 

If the filename is not reliably exposed by the application, suffix-only validation fails, and the upload is blocked. This behavior may be observed with ASP.NET applications and other frameworks that similarly manage uploads.

 

Resolution:

When configuring allowed file types:

  1. Refer to the existing File Security Policy configuration article for the full setup process.
  2. Under Predefined File Types, include:
    • The required content-based file types (for example, PDF, JPG, PNG).
    • The corresponding entries under Whole Suffix Files, including both lowercase and uppercase variants (for example, '.png' and '.PNG').
  3. Add Empty File Name to the allowed file types when uploads may not expose a filename consistently.
 

kb2.png

 

After applying these changes, legitimate uploads for the allowed file types should succeed, while non-matching file types remain blocked.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!