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

Notification

Icon
Error

Options
Go to last post Go to first unread
Beldar  
#1 Posted : Wednesday, January 18, 2012 8:27:51 AM(UTC)
Beldar

Rank: Newbie

Groups: Member
Joined: 1/18/2012(UTC)
Posts: 2

Hi,

I build a test page with a form that allows to upload an image and other fields, then I have like 2 input fields and the image.

I monitor the changes on the input fields and modify on the fly the aurigma url to append to the fields variable (like &fields=nom%3Dval1%26cognom%3Dval2 ).

But when I click on upload image I can't get those values back, I have to try to retrieve them when the image is uploading? Or maybe on the return url?

I supose it's send by $_POST... here's my uploading code:

Code:

if(isset($_POST) && count($_POST)>0){
	$path = realpath('./fotos/') . DIRECTORY_SEPARATOR;

	$fileCount = $_POST["PackageFileCount"];

	//for ($i = 0; $i < $fileCount; $i++) {
		if (isset($_FILES['File0_0'])) {
			move_uploaded_file($_FILES['File0_0']['tmp_name'], $path . time().'.jpg');
			$_SESSION['img_path'] = 'http://url.net/path/to/photos/' . time().'.jpg';
		}
	//}
	if(isset($_POST['nom']) && isset($_POST['cognom'])){
		$is = "INSER INTO proves (nom,cognom,img_path) VALUES ('".$_POST['nom']."', '".$_POST['cognom']."', '".$_SESSION['img_path']."')";
		$qi = mysql_query($is) or die(mysql_error());
	}
	$_SESSION['nom'] = $_POST['nom'];
	$_SESSION['cognom'] = $_POST['cognom'];
	
}


I try to save the values on the DB and in session but nothing seems to work.

Any help?
Dmitry.Obukhov  
#2 Posted : Thursday, January 19, 2012 2:24:09 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Could you please provide me with a link where Aurigma Up is hosted (login/password if any)? I will test it myself. Also, please send me code snippet of Aurigma Up code.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Beldar  
#3 Posted : Thursday, January 19, 2012 8:09:56 AM(UTC)
Beldar

Rank: Newbie

Groups: Member
Joined: 1/18/2012(UTC)
Posts: 2

Nevermind Dmitry,

I found another solution, passing the parameters by get to the upload url.

Thanks anyway.
Dmitry.Obukhov  
#4 Posted : Thursday, January 19, 2012 11:55:27 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Thanks for your comment. If you have any questions or problems, please feel free to post them here.
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.