I have a aspx page that alows a user to upload an image for their account. It tosses an error when i try to fill the form out from a android phones browser.
I wrote out the type of file my page says my phone is sending for uploading. Its this ... Application/Octet-Stream
How do i accept this file? I tried this code below with out sucess.
var FileExtension = Path.GetExtension(FileUpload1.PostedFile.FileName);
//FileUpload1.PostedFile.ContentType ==
if (FileUpload1.PostedFile.ContentType.ToLower() == "image/jpg" ||
FileUpload1.PostedFile.ContentType.ToLower() == "image/jpeg" ||
FileUpload1.PostedFile.ContentType.ToLower() == "image/pjpeg" ||
FileUpload1.PostedFile.ContentType.ToLower() == "image/gif" ||
FileUpload1.PostedFile.ContentType.ToLower() == "image/x-png" ||
FileUpload1.PostedFile.ContentType.ToLower() == "image/png" ||
FileUpload1.PostedFile.ContentType.ToLower() == "Application/Octet-Stream")
{