Open file dialog
In my project I need to open file dialog so that user can select local image file on his machine.
I need to access that local file and rename it and FTP that file on server.
What is the best way to that?
I have already used FileUpload control but some thread exception was occurring I don't rember it now sorry.
Any suggestions will be welcomed.
Nitin Daphale
Junior Poster in Training
64 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
fileNameOnServer = Path.GetFileNameWithoutExtension(FileUpLoad1.FileName) + random.Next() + Path.GetExtension(FileUpLoad1.FileName);
FileUpLoad1.SaveAs(HttpRuntime.AppDomainAppPath + "images/logos/" +fileNameOnServer);
Thanks.
Nitin Daphale
Junior Poster in Training
64 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0