I'm using a component from eFlex, called Uploader. Has anyone else run into this? Its really quite brilliant and was a breeze to implement and customize for my own needs:
Go here: http://www.everythingflex.com/ and search for "Uploader." But, from what I understand, the cfm processing for this, is the same as any other methodology when using Flex and Coldfusion for uploading data. The CFM I have that works, is a single line: <cffile action="upload" filefield="Filedata" destination="#ExpandPath ('./logos')#" nameconflict="OVERWRITE"> Can someone show me an example of this when used with a CFC instead of a CFM? I want to do some checks and balances in ColdFusion before physically using the cffile, and if those checks don't validate, return an error message to Flex. Is that possible? In fact, one problem with this component is when an upload error occurs, no message is sent to the user. What follows is the getFile() function found in the Uploader mxml. Thanks, - Chris public function getFile():void { if(this.uploadToURL.length > 0){ this.uploadURL = new URLRequest(); this.uploadURL.url = this.uploadToURL; /* uploadURL.url is defined per component instance and leads to the CFM for processing */ this.file = new FileReference(); this.configureListeners(file); this.file.browse(new Array(new FileFilter("Images", this.imagesFilter))); } else { Alert.show("uploadToURL is undefined", "Syntax Error"); } }