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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T18:12:13+00:00 2026-06-17T18:12:13+00:00

In my Flex Application doing Image upload for local system. Actually i’m using FileReference

  • 0

In my Flex Application doing Image upload for local system.

Actually i’m using FileReference class in this class have load() it is only in FP-10.

so i’m doing another way using upload() but this method taking URLRequest object.

 private const FILE_UPLOAD_URL:String
fileRef.upload(new URLRequest(FILE_UPLOAD_URL));

so problem is how to get file url in local system..

give me example for this help lot..

  • 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-17T18:12:14+00:00Added an answer on June 17, 2026 at 6:12 pm

    Try this:

    public class Uploader{
        private var fileReference:FileReference;
        private static const FILE_UPLOAD_URL:String = "http://somewebsite.com/images/..."
    
        public function Uploader()
        {
            fileReference = new FileReference();
            fileReference.addEventListener(Event.SELECT, onFileSelect);
        }   
    
        //Call this method to start browsing on local filesystem
        private function doUpload():void
        {
            fileReference.browse();
        }
    
        //After selecting a file you can now upload it 
        private function onFileSelect():void
        {
            fileReference.upload(new URLRequest(FILE_UPLOAD_URL));
        }
    
    }
    

    A full, working example can be found here

    Also make sure to check out the Livedocs on this matter

    Cheers

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

Sidebar

Related Questions

i am doing a web application in flex. i have a list of items
I have a Flex application in which I draw a rectangle using: <s:Rect height=20
I have been asked to check how to load test a flex application. I've
I have an application running on flex and php, connected using amfphp, i added
I am developing p2p application using RTFMP and flex.I am doing some research on
I'm trying to upload an image to imageshack using flex, but keep getting <links>
My Flex application is required to load a SWF file externally. This SWF file
I have a Flex 3 application where I was using a call to Dictionary.getValue.
Correct me If I am doing wrong: We have an existing web-application in Flex-BlazeDS-Spring
My Flex application records audio-only FLV files using red5--I'd like to convert these to

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.