webmas...@pegweb.com wrote: > I'm running CF 9 Enterprise and am having trouble getting a cfc to fire. > > Here is my invoke which is run after a file upload in a form field. > ... > <cfinvoke > component = "file-upload.FileUploader" > method = "UploadMemberImage" > returnVariable = "rVar" > argumentCollection = "#args#"> > > Here is my CFC. > <cfcomponent name="FileUploader"> > > The CFC is located in the same directory as the cfm file calling it. The > cfc file is named file-upload.cfc
You have got your naming tangled up, the "name" attribute in the <cfcomponent tag is just for display. If you have called the file "file-upload.cfc" then the invoke should just be to that filename: <cfinvoke component="file-upload" > -- Yours, Kym Kovan mbcomms.net.au ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4