I have tried the following code but the file is not uploaded.
If Not fileUpload.PostedFile Is Nothing And fileUpload.PostedFile.ContentLength > 0 Then
Dim fn As String = System.IO.Path.GetFileName(fileUpload.PostedFile.FileName)
Dim SaveLocation As String = Server.MapPath("~\FILEUPLOADS") & "\" & fn
Response.Write("The file has been uploaded.")
Catch Exc As Exception
Response.Write("Error: " & Exc.Message)
Response.Write("Please select a file to upload.")
Here the file name and the save location string values
are proper,but fileupload.postfile.saveas(savefilelocation)
is not working .Is there any modifications needed ?
I have tried the following code for opening the uploaded files.
It is working well.I it the right way to open the uploaded files.
Is there any problem arises in opening the files after the site is hosted to the web as the System.Diagnostics.Process.Start()
calles the local system processes.