Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Redirect the user after the upload passing some variables

Last post 10-28-2009, 8:50 AM by cutechat. 1 replies.
Sort Posts: Previous Next
  •  10-28-2009, 6:12 AM 56738

    Redirect the user after the upload passing some variables

    Hi.

    I need to make some other things after the upload, for example:

    - The user uploads files using PHP File Uploader.
    - PHP File Uploader upload the files in a temporary directory
    - After the succesful upload, the user is redirected to a page wich show it the uploaded images and let it to make some changes (for example specifying some labels or something else). Finally I move the images to the final destination and I write their references in the database.

    The problem is that the user needs to be redirected to another PHP page wich let it to make the changes after the succesful upload.
    PHP File Uploader has to send some variables to this PHP page (for example, the directory where the uploaded files are stored).

    Is there a way to make this?

    Thank you very much!
    Bye.

  •  10-28-2009, 8:50 AM 56743 in reply to 56738

    Re: Redirect the user after the upload passing some variables

    Hi,
     
    When uploader finish uploading files to temp directory , it will fire the JavaScript event OnPostback
     
    You can write function to handle this event :
     
    function CuteWebUI_AjaxUploader_OnPostback()
    {

    }
     
    In this function , you can submit a form for redirect at server side , or redirect to another page using window.location.href
     
    Please check the Advanced-Examples\ajax-multiplefiles.php or ajax-attachments.php .
     
    Regards,
    Terry
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.