c# - File Uploading to Server -


i working in asp.net , want upload file server shows me error

the saveas method configured require rooted path, , path ~/192.zzz.zzz.z/caheadservices/imagesniinir.jpg' not rooted.

here code

   protected void btnupload_click(object sender, eventargs e)     {         try         {             fup.saveas("~/192.zzz.zzz.z/caheadservices/images" + fup.filename);         }         catch (exception ex)         {             response.write(ex.message);         }       } 

please me out.

   protected void btnupload_click(object sender, eventargs e)     {         try         {             fup.saveas(server.mappath("~/192.zzz.zzz.z/caheadservices/images" + fup.filename));         }         catch (exception ex)         {             response.write(ex.message);         }       } 

Comments

Popular posts from this blog

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -