It works
On 3/29/07 12:12 PM, "Sammy Larbi" <[EMAIL PROTECTED]> wrote: > Ryan Everhart wrote, On 3/29/2007 6:25 AM: >> This may be a dumb question, but can you use a cfc to upload files? >> Do they have access to the form scope when executed? The way my >> application is being built is sorta like a framework where I have >> pages called views which display all my data then I have action pages >> which do stuff like add/remove/update data in the db via CFCs. So my >> question is, on an action page can I call a component that will be >> able to upload a picture from a form, or do i have to do the actual >> upload on the action page itself then do any other actions (rename, >> move, add file name to db) on the cfc. Thanks! I've been thinking >> about this all night but haven't tested it out yet. > > Try it out! CFCs do have access to the form scope, but generally I > think people tell you to only depend on a structure, and pass in the > form scope instead. I think I have actually tried uploading a file in > one, so assuming I'm not making up past experiences (which, on occasion > I probably have done), I'm pretty sure it will work. > > > > You are subscribed to cfcdev. To unsubscribe, please follow the instructions > at http://www.cfczone.org/listserv.cfm > > CFCDev is supported by: > Katapult Media, Inc. > We are cool code geeks looking for fun projects to rock! > www.katapultmedia.com > > An archive of the CFCDev list is available at > www.mail-archive.com/[email protected] > You are subscribed to cfcdev. To unsubscribe, please follow the instructions at http://www.cfczone.org/listserv.cfm CFCDev is supported by: Katapult Media, Inc. We are cool code geeks looking for fun projects to rock! www.katapultmedia.com An archive of the CFCDev list is available at www.mail-archive.com/[email protected]
