Subscript out of range with form upload

Results 1 to 2 of 2

Thread: Subscript out of range with form upload

  1. #1
    Dan E. Guest

    Default Subscript out of range with form upload

    Hello, I am trying to get a script to work that does a simple file upload from a web page to the server. I am using the aspSmartUpload component from Its use is extremely straightforward; however, when I try and use its Upload method which takes no arguments, I get a "subscript out of range error" I am running PWS right now but will soon be moving it to IIS. The component is registered with the system and I have no difficulty creating an object with the component, but uploading gives me an error. I have even cut and pasted code from the aspSmart site and I get the same error. Can someone help me out?<BR><BR>Thanks!<BR> Dan<BR><BR>Error data from PWS:<BR>aspSmartUpload error &#039 800a0009&#039 <BR><BR>Subscript out of range <BR><BR>/tmag/upload.asp, line 6 <BR><BR>Source of upload.asp:<BR>&#060;%@ LANGUAGE=VBSCRIPT %&#062;<BR>&#060;%<BR>Dim MyUpLoad<BR>Dim lngNBFile<BR>Set MyUpload = Server.CreateObject("AspSmartUpLoad.SmartUpLoad")< BR>MyUpload.Upload()<BR>MyUpload.Save()<BR>Respons e.Write(lngNBFile & " files saved.")<BR>%&#062;

  2. #2
    Sateesh Guest

    Default RE: Subscript out of range with form upload

    Hey where is the file name that you wanna upload, hope thz the problom, you should specify the filename that u wanna upload, check whether the particular component has some parameters to assign the filename. hope this solves ur problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts