Object required: 'jfile'

Last post 05-02-2010, 4:42 AM by MypeLypeemend. 4 replies.
Sort Posts: Previous Next
  •  04-29-2010, 1:27 PM 60547

    Object required: 'jfile'

    Hi, how proceed for solve error below???


     

    Microsoft VBScript runtime error '800a01a8'

    Object required: 'jfile'

    /controle/asp_upload/aspuploader/include_aspuploader.asp, line 464



    Tks

  •  04-29-2010, 4:16 PM 60550 in reply to 60547

    Re: Object required: 'jfile'

    This issue has something to do with your own code, please post your code here.
     
    Regards,
    Eric
  •  04-30-2010, 5:14 AM 60560 in reply to 60550

    Re: Object required: 'jfile'

    Eric, this is my code:

    <body>
     <div class="demo">                       
            <h2>Selecting multiple files for upload</h2>
      <p>ASP Uploader allows you to select multiple files and upload multiple files at once.</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.SaveDirectory= Server.MapPath("../../clientes") 
       uploader.AllowedFileExtensions="*.jpg,*.png,*.gif"   
       'uploader.Render()
       'uploader.GetString()
       %>
       <%=uploader.Render()%>
       </form>
       
       <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
    '  response.write "teste:&nbsp;" & list(i)
      Set mvcfile=uploader.GetUploadedFile(list(i))

      Response.Write("<br/>FileName : ")
      Response.Write(mvcfile.FileName)
     Next
    End If

    %>
       
     </div>
    </body>

  •  04-30-2010, 2:37 PM 60577 in reply to 60560

    Re: Object required: 'jfile'

    Please use the following code,

    <!-- #include file="aspuploader/include_aspuploader.asp" -->  
    <body>
     <div class="demo">                       
            <h2>Selecting multiple files for upload</h2>
      <p>ASP Uploader allows you to select multiple files and upload multiple files at once.</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.SaveDirectory= Server.MapPath("../../clientes") 
       uploader.AllowedFileExtensions="*.jpg,*.png,*.gif"  
       'uploader.Render()
       'uploader.GetString()
       %>
       <%=uploader.Render()%>
       </form>
      
       <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
    '  response.write "teste:&nbsp;" & list(i)
      Set mvcfile=uploader.GetUploadedFile(list(i))
      targetfilepath= "clientes/" & mvcfile.FileName    
      mvcfile.CopyTo(server.mappath(targetfilepath))   
      Response.Write("<br/>FileName : ")
      Response.Write(mvcfile.FileName)
     Next
    End If

    %>
      
     </div>
    </body>
     
    Regards,
    Eric
View as RSS news feed in XML