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
- <h2>Select one or more files to upload.</h2>
- <p> </p>
-
- <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.AllowedFileExtensions="*.mp4"
- %>
- <%=uploader.GetString() %>
- </form>
-
- <br/><br/>
- <%
-
- If Request.Form("myuploader")&""<>"" Then
- Dim mvcfile
- Set mvcfile=uploader.GetUploadedFile(Request.Form("myuploader"))
- pth="c:\inetpub\..."+mvcfile.FileName
- mvcfile.CopyTo(pth)
- End If
-
- %>