Re: Multiple File Timestamp

  •  02-06-2012, 3:45 PM

    Re: Multiple File Timestamp

    I thought this had it working, but now when duplicate files are uploaded, nothing happens. They are shown as successfully uploaded, but no overwriting at all is taking place; the original file remains with no showing of the new file on the server. 
     
    CodeL
    1.       <h2>Select one or more files to upload.</h2>  
    2. <p> </p>  
    3.           
    4.             <form id="form1" method="POST">  
    5.             <%  
    6.             Dim uploader  
    7.             Set uploader=new AspUploader  
    8.             uploader.MaxSizeKB=10240  
    9.             uploader.Name="myuploader"  
    10.             uploader.InsertText="Upload File (Max 10M)"  
    11.             uploader.MultipleFilesUpload=true  
    12.             uploader.AllowedFileExtensions="*.mp4"  
    13.             %>  
    14.             <%=uploader.GetString() %>  
    15.             </form>  
    16.               
    17.             <br/><br/>  
    18. <%  
    19.   
    20. If Request.Form("myuploader")&""<>"" Then  
    21.     Dim mvcfile  
    22.     Set mvcfile=uploader.GetUploadedFile(Request.Form("myuploader"))  
    23.         pth="c:\inetpub\..."+mvcfile.FileName  
    24.         mvcfile.CopyTo(pth)  
    25. End If  
    26.   
    27. %>  
     
View Complete Thread