Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
convo  
#1 Posted : Wednesday, October 19, 2011 5:32:37 AM(UTC)
convo

Rank: Newbie

Groups: Member
Joined: 10/19/2011(UTC)
Posts: 2

I'm looking to use AurigmaUp to capture a simple profile with a picture off an iPhone. I'm using a Wordpress blog with Gravity Forms plug-in and WPTouch Pro. This works great for a basic text form - and falls over when a photo is involved.

I want to:
1) use the AurigmaUp link in the Gravity Form/Post page. That's no problem. The iPhone will recognize the link in the forms post, open AurigmaUp take the photo and then return.

2) I want the photo to post to the Gravity Forms database. Any idea how I make this happen?

Thanks
Dmitry.Obukhov  
#2 Posted : Wednesday, October 19, 2011 6:41:39 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hello Stuart,

Thank you for contacting us.

Unfortunately, I am not familiar with Gravity Forms plug-in, but as far as I understand, Gravity Forms database is implemented with PHP. Aurigma Up sends files in separated POST requests. In this case on the server side you should pars this POST requests and save uploaded files to database. How to parse POST request on PHP, please see this code snippet:
Code:

<?php 
$path = realpath('./Temp/') . DIRECTORY_SEPARATOR;
$fileCount = $_POST["PackageFileCount"];
for ($i = 0; $i < $fileCount; $i++) {
    if (isset($_FILES['File0_' . $i])) {
        move_uploaded_file($_FILES['File0_' . $i]['tmp_name'], $path . $_POST['SourceName_' . $i]);
    }
} 

Edited by user Wednesday, October 19, 2011 6:43:01 PM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
convo  
#3 Posted : Thursday, October 20, 2011 12:00:39 AM(UTC)
convo

Rank: Newbie

Groups: Member
Joined: 10/19/2011(UTC)
Posts: 2

Thanks Dmitry! Yes it is all PHP. While I think I sort of understand the theory I'm not sure how to make it work. Perhaps someone else can chime in. I'm also asking the guys at Gravity forms as there's more than a few people around that would like to do this combined with wordpress.
Dmitry.Obukhov  
#4 Posted : Thursday, October 20, 2011 12:48:36 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Unfortunately, we do not have a specialist in our company, who can help you with Gravity Forms database. Probably, people from Gravity Forms will help you. The idea is simplest - to parse POST request, get file and save it to database. I am not savvy in this kind of database, thus I cannot assist you further.

Edited by user Thursday, October 20, 2011 12:49:18 AM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.