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

Notification

Icon
Error

Options
Go to last post Go to first unread
vimala  
#1 Posted : Friday, January 28, 2011 11:25:46 PM(UTC)
vimala

Rank: Member

Groups: Member
Joined: 11/16/2010(UTC)
Posts: 11

Hi,

I am using the aurigma image uploader 7.0 in my site and uploading large files through it. After finishing the uploading the session of my site has expired.

I want to pass the session variables in uploader and i want to get that variable after finishing the upload files and also want to set the session variables through any function.

Is there any way to store this information and get this information in aurigma image uploader.

Thanks in advance,
Vimala
Dmitry.Obukhov  
#2 Posted : Sunday, January 30, 2011 11:06:33 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

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

Thank you for this question. As far as I remember from your previous posts, you use PHP Library to embed Image Uploader into a web page (please correct, if another). To store session variable, you should add this code on the page with Image Uploader:
Code:

 <?php session_start();

  // store session data
  $_SESSION['aurigma']= 'Aurigma'; // some data

  //your code and Image Uploader configuration
  //…

?>

To get this session variable after uploading, you should add the following lines to your server-side script (the the function onFileUploaded($uploadedFile) method):
Code:

<?php session_start();

  function onFileUploaded($uploadedFile) {
    //retrieve session data
    echo "Pageviews=". $_SESSION['aurigma'];

    //your script to save uploaded files
    //…
  }

?>

Please feel free to let me know if you have some additional question about it.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
vimala  
#3 Posted : Monday, January 31, 2011 1:46:56 AM(UTC)
vimala

Rank: Member

Groups: Member
Joined: 11/16/2010(UTC)
Posts: 11

Dmitry.Obukhov wrote:
Hello Vimala,

Thank you for this question. As far as I remember from your previous posts, you use PHP Library to embed Image Uploader into a web page (please correct, if another). To store session variable, you should add this code on the page with Image Uploader:
Code:

 <?php session_start();

  // store session data
  $_SESSION['aurigma']= 'Aurigma'; // some data

  //your code and Image Uploader configuration
  //…

?>

To get this session variable after uploading, you should add the following lines to your server-side script (the the function onFileUploaded($uploadedFile) method):
Code:

<?php session_start();

  function onFileUploaded($uploadedFile) {
    //retrieve session data
    echo "Pageviews=". $_SESSION['aurigma'];

    //your script to save uploaded files
    //…
  }

?>

Please feel free to let me know if you have some additional question about it.


Hi,

Thanks for your info. But my requirement is different.

I am using the PHP library to embed the image uploader. I am getting the session parameters in the image uploader without any issues. When i uploading the larger files it is taking some minutes to upload and uploading process is completed successfully. During the uploading time, my site session expired and during the redirection process it is going to the login page instead of success page.

I want to set session after upload process is complete, for that i want to store session information variables in the image uploader variable and want to set that sesssion variables after completion of the uploading process.

Is there any method for this issue?

Regards,
Vimala
Dmitry.Obukhov  
#4 Posted : Monday, January 31, 2011 2:18:40 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Thanks for this explanation, Vimala.

You need to send session variables using additional fields property. Please read detailed information on how to send additional data along with files in the Uploading Additional Data in PHP article. I hope it will be helpful.

In the case if you have any problems with it, please let me know. I will be glad to assist you.
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.