Dear bros,
I have a system.It uploads applicants signatures pics from mobile/pc.
for pc it works well.But for mobile it is showing some letters and digits in the file uploader. Whats da prob?? my code is here.
============ ========= ========= ========= ========= ========= ========= ===
if (FileUpload1. HasFile)
{ try
{
string strPath = Server.MapPath( "~/images/ ");
FileUpload1. SaveAs(strPath +
FileUpload1. FileName) ;
string pname = TextBoxpn.Text;
string desc = TextBoxdesc. Text;
double amount = double.Parse( TextBoxprice. Text)*Int32. Parse(TextBoxsto ck.Text);
string fname = "/images/"+ FileUpload1. FileName;
ud.additem(pname, desc, Int32.Parse( TextBoxstock. Text), double.Parse( TextBoxprice. Text), amount, fname);
Label1.Text = "Created Successfully" ;
}
catch (Exception ex)
{
Label1.Text = "ERROR: " + ex.Message.ToString ();
}
}
else
{
Label1.Text = "You have not specified a file.";
}
============ ========= ========= ========= ========= ========= ========= =
hope for a quick solution.