Hi Peeps! How are you doing today?
Is there a way to do any coding and bind the file upload field to the phone/laptop camera?
Yes it is possible. I just did it for a client about a month ago. It's a combination of javascript/jQuery, Ajax, PHP, and a formidable hook. I give it about a 6/10 on the complexity scale.
Possible to share how you do it?
Since it's non-trivial, I'll be happy to do it as a paid job. In general, here's what I did.
1. Upload the file [Javascript/jQuery]
2. Move the file to a known location on the server [PHP via Ajax]
3. Create an entry in WP_POSTS for that file [PHP via Ajax]
4. Retrieve that ID from the new entry [Ajax return value]
5. Store that ID in a hidden field in the Formidable Form [Javascript/jQuery]
6. When the form is submitted, move the value in the hidden field to the Formidable File Upload object that was previously empty [frm_after_create_entry hook]
Please login or Register to submit your answer