Skip to main content
Inspiring
June 27, 2007
Answered

cffile destination error

  • June 27, 2007
  • 4 replies
  • 3052 views
I've tried to hard code the cffile destination, originally it's a variable, and I'm still getting the error msg:
"The value of the attribute destination, which is currently "D:\INETPUB\skyhead\learnlang\yiddish\Lesson 2\", is invalid."

If I change the path to "D:\INETPUB\skyhead\learnlang\yiddish\Lesson 2"
I get the error:"The destination either does not exist or is not accessible by this tag."

The folder is definitely there. What am I doing wrong?
<CFFILE action="upload" fileField="snd#idx#" destination="D:\INETPUB\skyhead\learnlang\yiddish\Lesson 2\" nameConflict="overwrite">
    This topic has been closed for replies.
    Correct answer skyhead03
    It turned out to be a Host issue. Thanks for everyones help.

    4 replies

    skyhead03AuthorCorrect answer
    Inspiring
    June 29, 2007
    It turned out to be a Host issue. Thanks for everyones help.
    Inspiring
    June 29, 2007
    ::<CFFILE action="upload" fileField="snd#idx#" destination="D:\INETPUB\skyhead\learnlang\yiddish\Lesson 2\" nameConflict="overwrite">

    CFML Reference Vol 1 for cfffile on page 143 says not to use #'s to specify the fileField. Hope this helps.
    skyhead03Author
    Inspiring
    June 27, 2007
    A very detailed error msg. Mostly the same.

    struct
    Detail The value of the attribute destination, which is currently "D:\INETPUB\skyhead\learnlang\yiddish\Lesson 2\", is invalid.
    Message Attribute validation error for tag CFFILE.
    StackTrace coldfusion.tagext.InvalidTagAttributeException: Attribute validation error for tag CFFILE. at coldfusion.tagext.io.FileTag.determineDest(FileTag.java:558) at coldfusion.tagext.io.FileTag.upload(FileTag.java:617) at coldfusion.tagext.io.FileTag.doStartTag(FileTag.java:263) at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915) at cfupload42ecfm1660359665.runPage(D:\INETPUB\skyhead\learnlang\adm\upload4.cfm:28) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152) at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349) at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225) at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51) at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115) at coldfusion.CfmServlet.service(CfmServlet.java:107) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78) at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) at com.intergral.fusionreactor.filter.FusionReactorFilter.B(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.A(Unknown Source) at com.intergral.fusionreactor.filter.FusionReactorFilter.doFilter(Unknown Source) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at com.seefusion.Filter.doFilter(Filter.java:40) at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1160) at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) at jrun.servlet.FilterChain.service(FilterChain.java:101) at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91) at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257) at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541) at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204) at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318) at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426) at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264) at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
    TagContext
    array
    1
    struct
    COLUMN 0
    ID CFFILE
    LINE 28
    RAW_TRACE at cfupload42ecfm1660359665.runPage(D:\INETPUB\skyhead\learnlang\adm\upload4.cfm:28)
    TEMPLATE D:\INETPUB\skyhead\learnlang\adm\upload4.cfm
    TYPE CFML
    Type Application
    name destination
    tagName CFFILE
    value D:\INETPUB\skyhead\learnlang\yiddish\Lesson 2\
    struct [empty]
    June 27, 2007
    Try the code below and see what you get.
    skyhead03Author
    Inspiring
    June 27, 2007
    Does the page with the cffile tag have to be in the same directory as the file upload destination? I just did a test and could upload a file with no problems if I uploaded to the same directory as my upload4.cfm page. ???