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

  • SEARCH
  • Home
  • 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 6792711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:00:18+00:00 2026-05-26T18:00:18+00:00

We are using SWFUpload for one of our forms so people can upload media.

  • 0

We are using SWFUpload for one of our forms so people can upload media. Once SWFUpload dispatches the uploadSuccess event, we get the data and URL of the file from the serverData that gets passed back when the event is dispatched.

Currently, in IE, the event is dispatched but it doesn’t seem like the information is saving — our hidden fields where we put the server data are blank. Perhaps the event is hanging and being dispatched too early, and then the server data is still empty.

The particular function that is supposed to snag and save the data:

.bind('uploadSuccess', function(event, file, serverData){
    var swfu = $.swfupload.getInstance('#swfupload-control');
    try {
        file.id = "singlefile";
        if (serverData === " " || serverData === null) {
            swfu.customSettings.upload_successful = false;
        } else {
            swfu.customSettings.upload_successful = true;
            document.getElementById("hidFileID").value = serverData;
        }
    } catch (ex) {
        swfu.debug(ex);
    }
})

If serverData is empty, is it possible to check for that data again with an event handler function?

  • 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-26T18:00:19+00:00Added an answer on May 26, 2026 at 6:00 pm

    FWIW, it’s not possible because it’s an event handler function, which is what I assumed.

    There’s an interesting possibility here of using GET instead of POST for better cross-browser compatibility: SWFUpload works in IE, but not in Firefox, however, I’m uploading to S3 so that solution is not possible.

    I’m attempting to get Uploadify up and running to see what happens there.

    UPDATE:

    I switched to Uploadify, but the issue wasn’t gem-specific. The data WAS getting returned for IE. However, this line:

    document.getElementById("hidFileID").value = serverData;
    

    was putting the serverData, which is a string of XML markup, into a hidden <input> tag. IE was not allowing this because the input tag is not a block element, so you can’t insert markup into non-block elements.

    Firefox and Chrome “forgive” this, but IE is actually correct here.

    I ended up parsing the serverData in the javascript and inserting the string (the url) that I needed from the data into the hidden input field, instead, and everything worked.

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

Sidebar

Related Questions

I am using SWFUpload to upload multiple files at once. But I notices that
I am uploading files using SWFUpload. To get the data I need passed along
I'm using Flash uploader(uploadify, swfupload) with CodeIgniter, want to get the session data. I
I'm currently using SWFUpload to upload files to my S3 bucket. And it's working
I am using swfupload to upload files on a website, the problem that every
I am currently using swfupload to upload my files and it works wonderfully, but
I'm using SWFUpload and Paperclip on Rails 2.3.5 to upload images and videos. How
I am facing a really weird problem. I am using swfupload to upload multiple
I am using a SWFupload script and I can't make a request from flash
I'm using jquery and swfupload in order to upload files and photos. Worked fine

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.