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 695815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:59:54+00:00 2026-05-14T02:59:54+00:00

I am using Uploadify to upload files. Problem is, I need to inform users

  • 0

I am using Uploadify to upload files. Problem is, I need to inform users of any error during processing of those files.

Uploadify has onError, onComplete, and onAllComplete event handler but I do not know how to trigger these events so that users are informed of what is going on.

Do I need to send JSON string? There is a clue here and here and here but I couldn’t make it to work. Perhaps the posting in the forum is outdated.

Anyone got any example that works for Uploadify 2.1?

  • 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-05-14T02:59:54+00:00Added an answer on May 14, 2026 at 2:59 am

    This was killing me but I found a way. In the uploadify.php file I created all my validation. The difference here is that I set HTTP 4xx codes for each type of error.

    if (! in_array($fileParts['extension'], $typesArray)) {
        header("HTTP/1.1 405"); //any 4XX error will work
        exit();
    }
    

    This throws the “405” error back to uploadify.js.

    In the file I set $(“#fileInput”).uploadify() I added the “onError” function.

            'onError' : function(event, ID, fileObj, errorObj) {
            var r = "<br />ERROR: ";
            switch(errorObj.info) {
            case 405:
                r += "Invalid file type.";
                break;
            case 406:
                r += "Some other error.";
                break;
            }
    
            setTimeout('$("#fileInput'+ ID + 'span.percentage").html("'+r+'");',111);
        }
    

    This forces the uploadify default function to exist while kind of extending it.

    Hope this help!

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

Sidebar

Related Questions

So I am using the Uplodify plugin to allow users to upload multiple images
I am uploading files using SWFUpload. To get the data I need passed along
I need to implement a flash-based file-uploader, that will allow me to upload multiple
I have read the following tutorial Uploading Files To the Server Using PHP and
I get a file via a HTTP upload and need to make sure its
I am using struts to build an image uploading module. However, I am encountering
I'm using a small site to experiment with the uploading of pictures and displaying
Using online interfaces to a version control system is a nice way to have
Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using ASP.NET MVC there are situations (such as form submission) that may require a

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.