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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:13:39+00:00 2026-05-26T21:13:39+00:00

I have a Flex app that uploads files to our website. We’re currently working

  • 0

I have a Flex app that uploads files to our website.
We’re currently working on transferring over to a new website, and at the moment the new website has to be accessed by IP instead of domain name.

The upload app works just fine on the current server, but on the new server it gives an upload security error.

I tried adding the IP to the crossdomain.xml, but that didn’t fix it.

I’m hoping that when we switch over the DNS to the new server, it’ll just start working, but it’s pretty important that it works right, right away.

[Event(name="uploadSecurityError", type="flash.events.SecurityErrorEvent")]
private var _refUploadFile:FileReference;

private function continueUpload():void {
    disableUI();
    if(AlertReturn){
        if (_arrUploadFiles.length > 0) {
            listFiles.selectedIndex = _numCurrentUpload;
            scrollFiles();
            // Variables to send along with upload
            var sendVars:URLVariables = new URLVariables();
            sendVars.dir = String(cboDir.selectedItem.data);
            sendVars.uname = String(cboUsername.selectedItem.data);
            sendVars.timekey = TimeKey;
            sendVars.proc = 0;

            var request:URLRequest = new URLRequest();
            request.data = sendVars;
            request.url = _strUploadUrl;
            request.method = URLRequestMethod.POST;
            _refUploadFile = new FileReference();
            _refUploadFile = listFiles.selectedItem.file;
            _refUploadFile.addEventListener(ProgressEvent.PROGRESS, onUploadProgress);
            _refUploadFile.addEventListener(Event.COMPLETE, onUploadComplete);
            _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR, onUploadIoError);
            _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR, onUploadSecurityError);
            _refUploadFile.addEventListener(DataEvent.UPLOAD_COMPLETE_DATA, uploadDataComplete);
            _refUploadFile.upload(request, "file", false);
        }
    }
}

// Called on upload security error
private function onUploadSecurityError(event:SecurityErrorEvent):void {
    clearUpload();
    var evt:SecurityErrorEvent = new SecurityErrorEvent("uploadSecurityError", false, false, event.text);
    dispatchEvent(evt);
}
  • 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-26T21:13:39+00:00Added an answer on May 26, 2026 at 9:13 pm

    Never mind.
    We changed the hosts file to allow us to use the domain name instead of the ip, and it worked just fine.

    Now I have to figure out why it’s removing the first letter of the file name on this server but not the old one…

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

Sidebar

Related Questions

I have a flex app that uploads files to a server. The server requires
We have a Flex app that is currently loading an XML file that contains
I have a Flex App that allows you to dynamically build an animation. It
I have a flex app that takes data from a back end database then
I have a flex app that is hosted on my server. It runs off
Hello StackOverflow'ers, I have a (flex) app that, on the click of a button,
I have a flex 3 app that uses netstream and a video object to
I have an app that uses Spring security and BlazeDS. Flex 3.2 is used
I have created an ashx handler that returns an image to my flex app.
I am learning flex and have written a little app with a TextArea that

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.