> 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#">
>
> ...
>
> The CFC is located in the same directory as the cfm file calling it. The
> cfc file is named file-upload.cfc
>
> I have tried suing a mapping, I have tried putting it in a subdirectory
> and calling it. Same result. I get the error below.
>
> Could not find the ColdFusion component or interface
> file-upload.FileUploader.
>
> ...
>
> Any ideas as to where I am going wrong here?

If the CFC file is saved as file-upload.cfc, you invoke it as
file-upload from the same directory, or path.from.webroot.file-upload
from any directory. You don't name a component within the CFC itself,
the name of the file is the name of the component.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:329382
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to