Skip to main content
Participating Frequently
August 8, 2008
Question

File upload using CFSCRIPT?

  • August 8, 2008
  • 4 replies
  • 510 views
I want to upload a file using code inside the cfscript tag. I can only find ways to use it with the CMFL tags. I want to use the script method due to other that depends on it in the cfscript tag. How can I do this? Thanks.

Ryan
This topic has been closed for replies.

4 replies

Inspiring
August 8, 2008
> I want to use the script method due to other
> that depends on it in the cfscript tag

Really? I can't think what might *depend* on CFScript.

What is it?

--
Adam
Participating Frequently
August 8, 2008
ah! makes perfect sense. Thanks!

<--- CF noob. sorry.
Inspiring
August 8, 2008
rpeters1983 wrote:
> I want to upload a file using code inside the cfscript tag.

You could write a wrapper function that contains the cffile tag. Then call your custom function from inside your cfscript. The CFML library at cflib.org uses that concept. An example is the Dump function. It mimics the <cfdump> tag.
http://cflib.org/udf/Dump
Inspiring
August 8, 2008
write a function with the tags and call it from cfscript.