Hi there.
I am currently working on a upload script that works with session variables. It is basically so users can upload pdf files to relevant folders in a house buying/selling system. An example if
User A has a PDF document from the site "king street", all the relevant information is in the session.
The location is a folder called "Sites" and inside there is the "king street" folder along with all others.
What I want to do if upload the PDF to the \\Drive\Sites\(relevant session)\file.pdf however in c# it decided to take my path and add a character to it which of course crashes the compiler.
So instead of this:
\\Drive\Sites\king street\file.pdf
I get
\\Drive\Sites\ king street\file.pdf
Here is my map string, any help really appreciated.
In the code "folder" is = "\\" and "dash" is = "-"
I am currently working on a upload script that works with session variables. It is basically so users can upload pdf files to relevant folders in a house buying/selling system. An example if
User A has a PDF document from the site "king street", all the relevant information is in the session.
The location is a folder called "Sites" and inside there is the "king street" folder along with all others.
What I want to do if upload the PDF to the \\Drive\Sites\(relevant session)\file.pdf however in c# it decided to take my path and add a character to it which of course crashes the compiler.
So instead of this:
\\Drive\Sites\king street\file.pdf
I get
\\Drive\Sites\ king street\file.pdf
Here is my map string, any help really appreciated.
Code:
y.SaveAs(HttpContext.Current.Server.MapPath("C:\\" + sessionSiteName+ sessionFileNumber + folder + sessionFileNumber + dash + sessionPlotDealer + fileExtension));
In the code "folder" is = "\\" and "dash" is = "-"