I am using VWG Openfiledialog which is a crapy replacement of asp.net fileupload control. Anyway, I click add button, file browser comes up, I select a txt file, then it showsup in the list, I click OK, I get this error The given path's format is not supported.
I want to store the text file in resources\data folder on the server. Here is the code snippet when Ok buton is clicked.
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
Gizmox.WebGUI.Common.Resources.HttpPostedFileHandle file =
Please try to be elaborative in your answer. Am I doing this correct? what could be invalid about the path? Can spaces in the path be a problem? Is there another way to save the file to that location. I basically want to upload a text file from client machine to a location on the server.
//and then you can get the filename via the variable:
this.textBox1.Text = file.PostedFileName;
//then if you wanted to store the file locally on the server you use the command.
m_filePath = System.Web.HttpContext.Current.Request.PhysicalApplicationPath + @"\Resources\Data\" + file.PostedFileName;