Anthony Matovu
asked on
renaming a file during saving for the file loader
I want to rename my file during saving for the file loader. below is the code i am using
If d_FileToUpload.HasFile Then
Try
If d_FileToUpload.PostedFile. ContentLen gth > 4000000 Then
Exit Sub
End If
d_FileToUpload.SaveAs(Serv er.MapPath ("docs\" & d_FileToUpload.FileName))
Catch ex As Exception
End Try
Else
End If
If d_FileToUpload.HasFile Then
Try
If d_FileToUpload.PostedFile.
Exit Sub
End If
d_FileToUpload.SaveAs(Serv
Catch ex As Exception
End Try
Else
End If
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
d_FileToUpload.SaveAs(Serv
to
d_FileToUpload.SaveAs(Serv