Copying the uploaded files to a specific directory does not work!

  •  12-10-2008, 5:08 AM

    Copying the uploaded files to a specific directory does not work!

    Hi, I'm trying to copy the uploaded files to a specific directory but failed, ASP.NET user has write permission on that directory, here is my code:
     
     

    Protected Sub Uploader_FileUploaded(ByVal sender As Object, ByVal args As UploaderEventArgs) Handles Uploader1.FileUploaded

    uploadcount += 1

    Dim uploader As CuteWebUI.Uploader = DirectCast(sender, CuteWebUI.Uploader)

    InsertMsg("File uploaded! " & args.FileName & ", " & args.FileSize & " bytes.")

    'Copys the uploaded file to a new location.

    args.CopyTo("E:\Projects\myproj\")

    End Sub

View Complete Thread