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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:13:42+00:00 2026-05-22T15:13:42+00:00

In my Flex application, users need to be able to upload and download content.

  • 0

In my Flex application, users need to be able to upload and download content. However, this content is access restricted, and I need to do a permissions check before allowing the upload/download. The user clicks a link, and then selects a file using the FileReference class. The FileReference class doesn’t attach cookie information, so I can’t use a session.

I want to implement a 2 step process where the client first pings the server to get a one-time-use token, and then does the upload or download with the one-time-use token as a parameter. However, this plan is being foiled by error #2176, which is apparently a security fix to FP10, that only allows uploads/download to be triggered during a MouseEvent propogation. Anyways around this?

  • 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-22T15:13:42+00:00Added an answer on May 22, 2026 at 3:13 pm

    I got workarround for this here.

     <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" 
                    layout="absolute" 
                    minWidth="955" minHeight="600"
                    creationComplete="creationCompleteHandler(event)">
        <mx:Script>
            <![CDATA[
                import mx.controls.Alert;
                import mx.events.CloseEvent;
                import mx.events.FlexEvent;
    
                protected function creationCompleteHandler(event:FlexEvent):void
                {
                    Alert.show("Now you can save the file!", "Test", Alert.OK|Alert.CANCEL, null, closeHandler);
                }
    
                protected function closeHandler( event:CloseEvent ):void
                {
                    var fileReference :FileReference;
    
                    if ( event.detail == Alert.OK )
                    {
                        fileReference = new FileReference();
                        fileReference.save("http://www.bogdanmanate.com", "test.txt");
                    }
                }
            ]]>
        </mx:Script>
    
    </mx:Application>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need the user of my Flex application to be able to save a
I have a Flex client application. I need a clean up function to run
I have Flex application requiring to filter users depending on there database groups. Depending
I'm working on dashboard editor in flex, an application that allow users to drag
I have a Flex 4/Blaze/Java application and would like to provide my users with
I have a flex application that needs the ability to generate and execute JavaScript.
When I run a Flex application in the debug flash player I get an
I have a Flex application where I'm using a Canvas to contain several other
I have a Flex application that calls a function which searches a large document
I have a Flex application that seems larger than it should be. There is

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.