Script function for file upload in ColdFusion 9

后端 未结 3 1376
無奈伤痛
無奈伤痛 2021-01-18 21:03

Is there a a cfscript equivalent for cffile action=\"upload\" in ColdFusion 9? Looking through the docs, there doesn\'t seem to be.

[Update] This was added in the 9

3条回答
  •  既然无缘
    2021-01-18 21:27

    Not sure when this was added but CF does support file uploads in CFSCRIPT. I have been using FileUpload() for a little while. I have checked it is not a function in my MVC framework and def seems to be something unique to CF 9.01.

    However, Builder 2 does not seem to like it nor can I find reference on CF 9 Docs but it does works and it is part the lasted Adobe ColdFusion 9.01, Ralio I have not checked tho

    examples used:

    fileUpload(getTempDirectory(),"ImageFile","","makeUnique");
    

提交回复
热议问题