Re: Object required: 'jfile'

  •  02-10-2010, 5:20 PM

    Re: Object required: 'jfile'

    Dear guox,
     
    Please use the following code:
    <!-- #include file="aspuploader/include_aspuploader.asp" -->
    <%
    Dim uploader
    Set uploader=new AspUploader
    uploader.MaxSizeKB=10240
    uploader.Name="myuploader"
    uploader.MultipleFilesUpload=False
    uploader.SaveDirectory="ResumeFiles"
    uploader.AllowedFileExtensions="*.doc,*.txt,*.rtf"
    %>
    <%=uploader.GetString() %> 
    <script type='text/javascript'>
     function CuteWebUI_AjaxUploader_OnTaskComplete(task)
     {
      var div=document.createElement("DIV");
      var link=document.createElement("A");
      link.setAttribute("href","ResumeFiles/"+task.FileName);
      link.setAttribute("target","_blank");
      link.innerHTML="You have uploaded file: ResumeFiles/"+task.FileName;
      div.appendChild(link);
      document.body.appendChild(div);
     }
     </script>
     
     
    Regards,
    Eric
View Complete Thread