Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Re: Aspsmartupload


Message #1 by "Eric" <ef@c...> on Wed, 14 Nov 2001 12:56:01
> I  am using the aspsmartupload component to upload a file to the server 

and

> whenever it reaches this line of code it 

> option explicit

>  dim mysmartupload 

> dim intcount 

> set mysmartupload = server.CreateObject("aspsmartupload.smartupload")

> mysmartupload.AllowedFilesList="doc,txt" 

> mysmartupload.DenyPhysicalPath =true 

> This line of code results in the following error message:

> aspSmartUpload (0x800A0009) Subscript out of range

> mysmartupload.Upload 

> intcount=mysmartupload.Save("/uploadtrial/uploadfiles") 

> response.Write intcount 

> 

> How to rectify this problem?

> 

> Anu



Hi



This error occurs when the asp is directly executed instead of being 

called from an HTML form with an ENCTYPE="multipart/form-data" tag. 



Have a look at the HTML  with the ASP examples and have a look at the tags.



Hope it helps !

Eric

  Return to Index