I am creating an ASP page that will allow a user to upload a file from their local drive and copy it to a subfolder on a webserver. I am running into problems when the parent folder's name contain a space ie(My Documents).
My code is:
Set FileObject = CreateObject("Scripting.FileSystemObject"
Set SourceFile = FileObject.GetFile(request.form("MyFile"
)
* Request.form("MyFile"
is the contents of the file Input Box from the asp page.
This is the error I receive on the the second set
Error Type:
Microsoft VBScript runtime (0x800A0035)
File not found
Is there a work around for the spaces?
My code is:
Set FileObject = CreateObject("Scripting.FileSystemObject"
Set SourceFile = FileObject.GetFile(request.form("MyFile"
* Request.form("MyFile"
This is the error I receive on the the second set
Error Type:
Microsoft VBScript runtime (0x800A0035)
File not found
Is there a work around for the spaces?