Persits Software, Inc. Knowledge Base Articles

FileName property is not supported error

Problem Description

When using the property FileName of the UploadedFile object, the following error is generated:

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'FileName'


The property File.FileName was introduced by AspUpload 3.0 to replace a more verbose File.ExtractFileName . These two properties are completely equivalent.

The above error message indicates that your server is still running version 2.1 or earlier of AspUpload. Therefore, you should either upgrade to AspUpload 3.0+ or replace FileName by ExtractFileName . The latter is supported by all versions of AspUpload (including 3.0+) for backwards compatibility.