What's going on here?

Last post 12-16-2011, 12:55 PM by bbaldrober. 6 replies.
Sort Posts: Previous Next
  •  12-14-2011, 8:24 PM 72008

    What's going on here?

    New to aspuploader.  I'm running code taken from aspuploader site for manually initiating uploads.  I get an odd window with a dropdown, populated with one entry, the program running.  I don't understand what's going on and why I can't select files to upload.
     
     
    Here's the code I'm running:   http://emmarobb.com/listingimages/products_upload_picture4.asp
     
    Any ideas?
  •  12-15-2011, 7:06 AM 72021 in reply to 72008

    Re: What's going on here?

    Hi bbaldrober,
     
    I can not access page http://emmarobb.com/listingimages/products_upload_picture4.asp, can you check it?
     
    Regards,
     
    Ken 
  •  12-15-2011, 8:26 AM 72023 in reply to 72021

    Re: What's going on here?

    Sorry.   Thanks for your interest.  Here's the code:
     

    <%@ Language="VBScript" %>
    <!-- #include file="aspuploader/include_aspuploader.asp" -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     <title>
      Form - Start uploading manually
     </title>
     <link href="demo.css" rel="stylesheet" type="text/css" />
       
     <script type="text/javascript">
     function doStart()
     {
      var uploadobj = document.getElementById('myuploader');
      if (uploadobj.getqueuecount() > 0)
      {
       uploadobj.startupload();
      }
      else
      {
       alert("Please browse files for upload");
      }
     }
     </script>

    </head>
    <body>
     <div class="demo">    
       <h2>Start uploading manually</h2>
       <p>This sample demonstrates how to start uploading manually after file selection vs automatically.</p>

       <!-- do not need enctype="multipart/form-data" -->
       <form id="form1" method="POST">
        <%
        Dim uploader
        Set uploader=new AspUploader
        uploader.MaxSizeKB=10240
        uploader.Name="myuploader"
        uploader.InsertText="Upload File (Max 10M)"
        uploader.MultipleFilesUpload=true
        
        uploader.ManualStartUpload=true
        
        %>
        <%=uploader.GetString() %>
       
        <br /><br /><br />
        <button id="submitbutton" onclick="doStart();return false;">Start Uploading Files</button>

       </form>
       
       <br/><br/><br/>
    <%

    If Request.Form("myuploader")&""<>"" Then

     Dim list,i
     list=Split(Request.Form("myuploader"),"/")

     For i=0 to Ubound(list)
      if i>0 then
       Response.Write("<hr/>")
      end if
      Dim mvcfile
      Set mvcfile=uploader.GetUploadedFile(list(i))

      Response.Write("<div style='font-family:Fixedsys'>")
      Response.Write("Uploaded File:")
      Response.Write("<br/>FileName : ")
      Response.Write(mvcfile.FileName)
      Response.Write("<br/>FileSize : ")
      Response.Write(mvcfile.FileSize)
      Response.Write("<br/>FilePath : ")
      Response.Write(mvcfile.FilePath)
      Response.Write("</div>")
     Next
    End If

    %>
        
     </div>
    </body>
    </html>

  •  12-15-2011, 9:10 AM 72024 in reply to 72023

    Re: What's going on here?

    Here's the popup with the dropdown clicked: www.emmarobb.com/listingimages/aspuploader_result_20111214b.bmp
     
    Correction: source code: go here and view source:  http://www.emmarobb.com/listingimages/products_upload_picture4.txt
     
  •  12-15-2011, 9:12 AM 72025 in reply to 72023

    Re: What's going on here?

    Here's the popup with the dropdown clicked: www.emmarobb.com/listingimages/aspuploader_result_20111214b.bmp
     
    Correction: source code: go here and view source:  http://www.emmarobb.com/listingimages/products_upload_picture4.txt
     
  •  12-16-2011, 7:25 AM 72048 in reply to 72025

    Re: What's going on here?

    Hi bbaldrober,
     
    Your code is correct. Can put your example page online? So I can test it.
     
    Regards,
     
    Ken 
  •  12-16-2011, 12:55 PM 72055 in reply to 72048

    Re: What's going on here?

    Tthanks for your interest.   Try:
     
    http://www.emmarobb.com/admin/products_upload_picture4.asp
     
    It gets past the include statement so it finds the aspuploader directory.  Aspuploader is on 30 day trial, downloaded 12/3/2011.    
     
     
    But when I look at the source, it ends just before "dim aspuploader" -  rest of code not there.  So it dies when it executes dim aspuploader. 
     
    I thought maybe the installation was wrong so on 12/14 I downloaded again and put in a separate directory on server.  Same result.  
     
    I'm scratching my head...
View as RSS news feed in XML