There shouldn't be any problem doing a file upload via a CFC. One thing that's helped me is to wrap the file upload action in a try/catch block. If it fails, return a message with the error details. If it succeeds, return an "upload successful" message.
-- Josh ----- Original Message ----- From: "Robert Rawlins - Think Blue" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Thursday, May 03, 2007 10:06 AM Subject: File Upload & CFC > Hello Guys, > > > > I've not really worked with file uploads very much, I've done a couple of > small ones using standard procedural methods in CFM pages, but I'm quite > keen for my next venture to move this into a CFC along with all my other > 'proper' code. > > > > Has anyone had any experience with this, what are the pitfalls and the > general method for uploading the file? Can I simply pass the file from the > form into an argument and then process it inside a cfc method with the > cffile tag? > > > > Thanks for any ideas or imparted wisdom. > > > > Rob > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:276955 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

