Search Persits Software Knowledge Base

 

Article PS01041844

The filename, directory name, or volume label syntax is incorrect

Problem Description

When trying to call the Save method of the AspUpload component with an HTTP URL as an argument, the following error is generated:

Persits.Upload.1 error '800a0005' The filename, directory name, or volume label syntax is incorrect.

Solution

The Save method of the AspUpload component only accepts physical paths, not URLs.

' Incorrect: URLs not allowed
Upload.Save "http://server/directory"

' Correct: local path
Upload.Save "c:\upload"

' Correct: UNC path
Upload.Save "\\server\share\dir"

' Correct: virtual folder
Upload.SaveVirtual "/Dir"

Created: 2/8/2002 5:26:17 AM
Last Modified: 2/9/2002 4:14:56 PM

Copyright © Persits Software, Inc. 1998 - 2018
For technical support, write to support@persits.com.