For Each postedFile As HttpPostedFile In filMyFile.PostedFiles Dim getfile As String = System.IO.Path.GetFileName(postedFile.FileName) Dim FileToMove As String Dim MoveLocation As String GlobalVariables.savepath = Context.Server.MapPath("../Media/Temp/") GlobalVariables.MovePath = Context.Server.MapPath("../Media/") FileToMove = (GlobalVariables.savepath & getfile & ".mp3") MoveLocation = (GlobalVariables.MovePath & strPath & "/" & getfile & ".mp3") If System.IO.File.Exists(FileToMove) = True Then My.Computer.FileSystem.MoveFile(FileToMove, MoveLocation) ' <<<< ERROR POINTS HERE End If
Image PID Type Handle Name
w3wp.exe 12272 File G:\InetPub\wwwroot\mysite\
Media\Temp \031120202 23702438.m p3
mp3.Dispose() ' did nothing filMyFile.Dispose() ' did nothing
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
An Experts Exchange subscription includes unlimited access to online courses.Get Started
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE