[flexcoders] Upload file component

2008-08-11 Thread Joshua Jackson
Dear all,

How do I upload file with Flex? Is there any file uploader component?
I could not find any in the documentation, perhaps I have missed
anything. Could anyone give me some hints?

Best regards,

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak


Re: [flexcoders] Upload file component

2008-08-11 Thread Simon Bailey

I built one for the PureMVC WIKI here:

http://trac.puremvc.org/Demo_AS3_Flex_CF_FileUpload

Cheers,

Simon

On 11 Aug 2008, at 16:48, Joshua Jackson wrote:

Dear all,

How do I upload file with Flex? Is there any file uploader component?
I could not find any in the documentation, perhaps I have missed
anything. Could anyone give me some hints?

Best regards,

--  
Setting a new landmark.

Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak





Re: [flexcoders] Upload file component

2008-08-11 Thread Richard Rodseth
If you Google you will find examples, eg.

http://weblog.cahlan.com/2006/12/flex-upload-component.html

Depending on your UI requirements, you might find it easier to roll your
own. See FileReference.upload().

Either way, you will have to be aware of issues with Firefox and with SSL,
which you can read about in the archives.

On Mon, Aug 11, 2008 at 8:48 AM, Joshua Jackson [EMAIL PROTECTED]wrote:

   Dear all,

 How do I upload file with Flex? Is there any file uploader component?
 I could not find any in the documentation, perhaps I have missed
 anything. Could anyone give me some hints?

 Best regards,

 --
 Setting a new landmark.
 Blog: http://joshuajava.wordpress.com/
 Twitter: http://twitter.com/thejavafreak
  



RE: [flexcoders] Upload file component

2008-08-11 Thread Dimitrios Gianninas
look at the FileReference class
 
Dimitrios Gianninas
RIA Developer and Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Joshua 
Jackson
Sent: Monday, August 11, 2008 11:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Upload file component



Dear all,

How do I upload file with Flex? Is there any file uploader component?
I could not find any in the documentation, perhaps I have missed
anything. Could anyone give me some hints?

Best regards,

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/ http://joshuajava.wordpress.com/ 
Twitter: http://twitter.com/thejavafreak http://twitter.com/thejavafreak 


 

-- 
WARNING
---
This electronic message and its attachments may contain confidential, 
proprietary or legally privileged information, which is solely for the use of 
the intended recipient.  No privilege or other rights are waived by any 
unintended transmission or unauthorized retransmission of this message.  If you 
are not the intended recipient of this message, or if you have received it in 
error, you should immediately stop reading this message and delete it and all 
attachments from your system.  The reading, distribution, copying or other use 
of this message or its attachments by unintended recipients is unauthorized and 
may be unlawful.  If you have received this e-mail in error, please notify the 
sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des 
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au 
seul usage du destinataire visé.  L'expéditeur original ne renonce à aucun 
privilège ou à aucun autre droit si le présent message a été transmis 
involontairement ou s'il est retransmis sans son autorisation.  Si vous n'êtes 
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, 
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses 
pièces jointes, de votre système.  La lecture, la distribution, la copie ou 
tout autre usage du présent message ou de ses pièces jointes par des personnes 
autres que le destinataire visé ne sont pas autorisés et pourraient être 
illégaux.  Si vous avez reçu ce courrier électronique par erreur, veuillez en 
aviser l'expéditeur.



Re: [flexcoders] Upload file component

2008-08-11 Thread Simon Bailey

I built one for the PureMVC WIKI here:

http://trac.puremvc.org/Demo_AS3_Flex_CF_FileUpload

Cheers,

Simon

On 11 Aug 2008, at 16:48, Joshua Jackson wrote:

Dear all,

How do I upload file with Flex? Is there any file uploader component?
I could not find any in the documentation, perhaps I have missed
anything. Could anyone give me some hints?

Best regards,

--  
Setting a new landmark.

Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak





RE: [flexcoders] Upload file component

2008-08-11 Thread Link Mckinney
There is no file uploader, you have to make one, Take a look at this example

 

You use the flash.net.FileReference

 

 

 

[Bindable] private var resume:FileReference = new FileReference();

[Bindable] private var textTypes:FileFilter = new FileFilter(Text Files
(*.txt, *.rtf, *.doc, *.docx), *.txt; *.rtf; *.doc; *.docx);

[Bindable] private var pdfTypes:FileFilter = new FileFilter(PDF Files
(*.pdf), *.pdf);

[Bindable] private var allTypes:Array = new Array(textTypes, pdfTypes);

[Bindable] private var resumeName:String = ;

[Bindable] public var FileUpload:TitleWindow;

 

 

//remove complete when the resume is completely uploaded. }

 

private function browseFiles():void{

resume.browse(allTypes);

}

 

private function selectHandler(evt:Event):void{

//Apply name to text field to allow user to know the file
has been attached to the form

//returns full name with extension

resumeName = resume.name;



 

 }

 

//IF FORM IS VALIDATED

//Upload resume

var request:URLRequest = new
URLRequest(/yourdocumentpath/fileupload.cfm);



try

{



resume.upload(request);

}

catch (error:Error)

{

   var errorMessage:String = ERROR: Cannot Upload the file. Please
contact [EMAIL PROTECTED] for further support;

   var errorTitle:String = UPLOAD ERROR; 

   alert = Alert.show(errorMessage, errorTitle);

}

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Joshua Jackson
Sent: Monday, August 11, 2008 10:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Upload file component

 

Dear all,

How do I upload file with Flex? Is there any file uploader component?
I could not find any in the documentation, perhaps I have missed
anything. Could anyone give me some hints?

Best regards,

-- 
Setting a new landmark.
Blog: http://joshuajava.wordpress.com/
Twitter: http://twitter.com/thejavafreak