Hi cksachdev
Thanks for you replay. I am developing web application In that when client
select file form his file system I should store in sever machine . this is
my requirement. can you help me?

regrades
sudheer

On Mon, Mar 16, 2009 at 2:10 PM, cksachdev <[email protected]> wrote:

>
> Not clear, what you are trying to achieve. Could you please explain a
> bit more. Are you trying to display the directory structure of server
> side folder/s or upload a file to server from client machine ?
>
> --
> Chetan Sachdev
> http://www.riageeks.com
>
> On Mar 15, 6:55 pm, sudheer kumar <[email protected]> wrote:
> > Hi all,
> >
> > I am developing one application in that I need one requirement.when user
> > browser a folder that folder store in server side. I wrote the following
> > code for that . I am using Apache server for that. how to save How to
> > specify server folder?
> >
> > <?xml version="1.0" encoding="utf-8"?>
> > <!--
> http://blog.flexexamples.com/2007/09/21/uploading-files-in-flex-using...>
> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> >         layout="vertical"
> >         verticalAlign="middle"
> >         backgroundColor="white"
> >         creationComplete="init();" viewSourceURL="srcview/index.html">
> >
> >     <mx:Script>
> >         <![CDATA[
> >             import mx.controls.Alert;
> >             private var fileRef:FileReference;
> >
> >             private const FILE_UPLOAD_URL:String = "
> http://localhost/fileref/uploader.cfm";;
> >
> >             private function init():void {
> >                 fileRef = new FileReference();
> >                 fileRef.addEventListener(Event.SELECT, fileRef_select);
> >                 fileRef.addEventListener(ProgressEvent.PROGRESS,
> > fileRef_progress);
> >                 fileRef.addEventListener(Event.COMPLETE,
> fileRef_complete);
> >             }
> >
> >             private function browseAndUpload():void {
> >                 fileRef.browse();
> >
> >                 message.text = "";
> >             }
> >
> >             private function fileRef_select(evt:Event):void {
> >                 try {
> >                     message.text = "size (bytes): " +
> > numberFormatter.format(fileRef.size);
> >
> >                     fileRef.upload(new URLRequest(FILE_UPLOAD_URL));
> >                 } catch (err:Error) {
> >                     message.text = "ERROR: zero-byte file";
> >                 }
> >             }
> >
> >             private function fileRef_progress(evt:ProgressEvent):void {
> >                 progressBar.visible = true;
> >             }
> >
> >             private function fileRef_complete(evt:Event):void {
> >                 message.text += " (complete)";
> >                 progressBar.visible = false;
> >             }
> >         ]]>
> >     </mx:Script>
> >
> >     <mx:NumberFormatter id="numberFormatter" />
> >
> >     <mx:Button label="Upload file"
> >             click="browseAndUpload();" />
> >     <mx:Label id="message" />
> >     <mx:ProgressBar id="progressBar"
> >             indeterminate="true"
> >             visible="false" />
> >
> > </mx:Application>
> >
> > it show error. can any one help me?
> >
> > regrades
> > sudheer
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to