hi friends
I have a problem in uploading images in server side.
when i upload the image in localhost i will get the filename and it's
uploaded fine. when i setup the file and run , i didn't get the
filename from fileupload control. it's hide when i click the button.
how can i get the filename??
if anybody knows kindly reply ....
Loading
ArshadPosted Jun 19, 2008, 1:19 AM
photoName = fileImage.Value.Substring(fileImage.Value.LastIndexOf("\") + 1)
where fileImage is Input File.
This will get you the File Name or Image Name.Then
CurImagePath = ImagePath + photoName.ToString()
Then
Request.Files(0).SaveAs(CurImagePath)
Thanks
Khan.