Thanks for pointing me to controlHandlers. That solved the problem. Can you
tell me how to know when I should use a controlHandler over when I can just
use a form tag?

Also, now that the picker and upload are working, I have a new problem in
that the stParam.lExtensionFilter attribute does not seem to be working. For
instance, I uploaded jpg's and txt's and then set the
stParam.lExtensionFilter = 'txt' and I can still see the jpg's in the picker
dropdown. Any idea what might be going on?

<cfscript>
        stParams = structNew();
        stParams.directoryPath =
'#application.RootDataDir#site\images\uploads\article\dropcap\';
        stParams.directoryURL = "site/images/uploads/article/dropcap/";
        stParams.lExtensionFilter = "jpg";
</cfscript>

<cfa_contentObject
        datasource="#request.cfa.objectstore.dsn#" 
        stObject="#input.dropcap.file#"
        stParams = "#stParams#"
        method="picker">

Thanks,
nate



-----Original Message-----
From: Michiel Boland [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 14, 2001 11:44 AM
To: Spectra-Talk
Subject: Re: Using the File's Upload Method Results in JScript Error


> Ok, so I did that and now I'm getting a JScript error when I click the
> Spectra generated upload button. The error is as follows:
> document.forms[...]._cfaemptyevent' is null or not an object

What happens if you use <cfa_controlhandler> rather than <form> ?

-- 
Michiel Boland <[EMAIL PROTECTED]>
Digital Valley Internet Professionals
Plantsoen 17, Wageningen, The Netherlands
Phone: +31 317 465555, Fax: +31 317 460276
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to