p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

asp_databases thread: Re: Aspsmartupload


Message #1 by "Moynul Islam" <moynul.islam@p...> on Mon, 17 Jun 2002 16:24:34
Ensure that you are using correct encryption and method

eg.

<HTML>
<BODY>
    <FORM ENCTYPE="multipart/form-data" ACTION="upload.asp?MYPARAM=test" 
method="post">
    <INPUT TYPE="TEXT" NAME="MYTEXT">
    <INPUT TYPE="FILE" NAME="FILE">
    <INPUT TYPE="SUBMIT">
    </FORM>
</BODY>
<HTML>

Moynul
Message #2 by "Moynul Islam" <moynul.islam@p...> on Thu, 13 Jun 2002 13:37:56
> 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

-----

Ensure that you are using the right ENCODING & METHOD on the form

e.g.

<HTML>
<BODY>
    <FORM ENCTYPE="multipart/form-data" ACTION="upload.asp?MYPARAM=test" 
method="post">
    <INPUT TYPE="TEXT" NAME="MYTEXT">
    <INPUT TYPE="FILE" NAME="FILE">
    <INPUT TYPE="SUBMIT">
    </FORM>
</BODY>
<HTML>
Message #3 by "Moynul Islam" <moynul@b...> on Thu, 13 Jun 2002 13:29:51
> 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


---------


Ensure that you are using the right ENCODING & METHOD on the form

e.g.

<HTML>
<BODY>
    <FORM ENCTYPE="multipart/form-data" ACTION="upload.asp?MYPARAM=test" 
method="post">
    <INPUT TYPE="TEXT" NAME="MYTEXT">
    <INPUT TYPE="FILE" NAME="FILE">
    <INPUT TYPE="SUBMIT">
    </FORM>
</BODY>
<HTML>

Moynul



  Return to Index