Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8619435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:20:18+00:00 2026-06-12T06:20:18+00:00

I know there are already some threads with this question, but none was helpful

  • 0

I know there are already some threads with this question, but none was helpful to me.

I have an image manager and I would like to reload the page with “onComplete” event, but it not work for me.

you can see an example: http://graficnova.com/uploadifytest/imgLoader.php

Everything works successful!!, but u need press f5 key for refresh it :(.

Thx and sorry for my english!

code:

head:

<script type="text/javascript">
        $(function() {
            $("#fileInput").uploadify({
                width : 100,
                swf           : 'swf/uploadify.swf',
                uploader      : 'php/uploadify.php',                    
                queueID : 'imgloadList',
                oncomplete : function() {
                    alert('hello world?'); //<- THIS NOT WORK
                }
            });             
        });                 
    </script>

php: uploadify.php

if (!empty($_FILES)) {
$tempFile = $_FILES['Filedata']['tmp_name'];

//$targetPath = $_SERVER['DOCUMENT_ROOT'] . $targetFolder;


$targetPath = 'xxxxx/xxxx/xxxx/xxxx';



$targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name'];



// Validate the file type
$fileTypes = array('jpg','jpeg','gif','png'); // File extensions
$fileParts = pathinfo($_FILES['Filedata']['name']);

if (in_array($fileParts['extension'],$fileTypes)) {     
    move_uploaded_file($tempFile,$targetFile);
    echo '1'; //<- return response
} else {
    echo 'Invalid file type.'; //<- return response
}   

}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:20:19+00:00Added an answer on June 12, 2026 at 6:20 am

    Based on the Uploadify docs, there isn’t an onComplete event, but there is an ‘onUploadComplete’ event:

    Triggered once for each file when uploading is completed whether it was successful or returned an error. If you want to know if the upload was successful or not, it’s better to use the onUploadSuccess event or onUploadError event.

    Might want to give that a try. Or check out onQueueComplete.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know there are already some threads about this error, but none of them
I know there are already some threads about this, but I just won't work
I know there are already some posts about this topic, but I cannot find
There's already a question on this here. But i want to know if its
Like many people already seem to have (there are several threads on this subject
I know there are already many questions like mine but I found no answer
I know there are already objects supporting Office 2007 files, but is there any
Hey I know there are already a few posts about this - yet I
I know there are a few questions on stack already regarding this, and I
First of, I know there are similar questions already on stackoverflow ( this ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.