Last post Jan 14, 2011 10:04 PM by roopeshreddy
Jan 14, 2011 12:25 PM|notoriousvic|LINK
I have a file upload page on my mobile site which the iPhone does not support.
How do I detect if a mobile browser supports file upload (<input type="file"/>).
Browser Definition Files
Jan 14, 2011 12:51 PM|shabirhakim1|LINK
this post might help you
Jan 14, 2011 03:43 PM|notoriousvic|LINK
Thanks for the link but it has no solution.
I don't want to post files I want to detect if a mobile browser can post files.
Jan 14, 2011 10:04 PM|roopeshreddy|LINK
By default there is no tags or code, to detect whether the Mobile browser supports file upload.
You have to detect the Mobile browser, and if the Browser doesn't support File upload, then u have to hide it. I think this is the only solution as far now.
You need to maintain a list of Devices or Brands of Browser types, which doesn't support File upload.Then u have to check the requested type with the list. If it is not in the list then u can display the File Upload control, otherwise hide it.
To detect the browsers, check the following link.
Hope it helps u...