I'm trying to write a script that will allow a user to upload a picture taken by (or selected from) their phone when on my jquerymobile driven site. I've found that AJAX doesn't allow file submissions in a form and I will have to use the following line
<form method=”POST” enctype=”multipart/form-data” action=”process_update.php” data-ajax=”false”>
for the form itself, but I can't find anyway to tell the smartphone to prompt the user to choose between selecting a photograph on their phone or taking a new one.
How do I accomplish this? Would I be better off looking into using some sort of plugin?
I plan on performing cropping and size changes on the server side as part of the form submission.