Hi,
I'm using the latest radupload in 2008 Q2 (VB)
I'm uploading a single file, and using the FileExists functionality. Nothing spectacular going on and it uploads just fine.
The problem is once the file is uploaded, I cannot delete the file using Windows Explorer. I get (Cannot delete imagename: Access is denied. Make sure the disk is not full or write protected and that the file is not currently in use.) I am an administrator on the machine so it shouldn't be a permissions issue. I can delete other files without problems. Again, I'm deleting manually, not via .NET.
I think dispose() may need to be called at some point, but I'm not really doing much in the code-behind other than the following. Any help would be greatly appreciated...
I'm using the latest radupload in 2008 Q2 (VB)
I'm uploading a single file, and using the FileExists functionality. Nothing spectacular going on and it uploads just fine.
The problem is once the file is uploaded, I cannot delete the file using Windows Explorer. I get (Cannot delete imagename: Access is denied. Make sure the disk is not full or write protected and that the file is not currently in use.) I am an administrator on the machine so it shouldn't be a permissions issue. I can delete other files without problems. Again, I'm deleting manually, not via .NET.
I think dispose() may need to be called at some point, but I'm not really doing much in the code-behind other than the following. Any help would be greatly appreciated...
Protected
Sub RadUpload1_FileExists(ByVal sender As Object, ByVal e As UploadedFileEventArgs) Handles RadUpload1.FileExists
lblMsg.ForeColor = Drawing.Color.Red
lblMsg.Text = "Filename already exists! Filenames must be unique."
fileexists = True 'This variable is declared globally
End Sub
Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As EventArgs) Handles btnUpload.Click
If Not fileexists Then
Dim fname As String = RadUpload1.UploadedFiles.Item(0).GetName
lblMsg.ForeColor = Drawing.Color.Green
lblMsg.Text = "Successfully Uploaded: " & fname
End If
End Sub