This commit is contained in:
msyu
2024-10-23 11:17:42 +03:00
commit ab5c944862
380 changed files with 55823 additions and 0 deletions
@@ -0,0 +1,17 @@
<cfcomponent extends="taffy.core.resource" taffy:uri="/upload">
<cffunction name="post">
<cfargument name="img" />
<cfset var local = structNew() />
<!--- accept the upload --->
<cffile action="upload" destination="#getTempDirectory()#" filefield="img" result="local.r" />
<!--- delete the file --->
<cffile action="delete" file="#local.r.serverdirectory#/#local.r.serverfile#" />
<cfreturn representationOf( local.r ).withStatus(200) />
</cffunction>
</cfcomponent>