So I'm new to coding in coldfusion, this being my second month, so bear with me on this.
My employer's client wants to upload multiple files handling errors smoothly, meaning that it will continue on through all the uploads even if there was an error.
So with CF11, I can use uploadAll with the optional values of continueOnError and Errors enabled to handle the multiple files easily.
Problem is, is that my employer's testing server is still only CF10, and might not get updated anytime soon. So continueOnError and Error will fail on compile on our testing server, but not on the clients server.
I would like to be able to do something like:
<cfif SERVER.ColdFusion.ProductVersion gte 11>
<optimal cffile uploadAll code>
<cfelse>
<suboptimal cffile uploadAll code>
</cfif>
And not have any problems with compiling. But the testing server has a problem with the code anyway. Is there any way that this can be done within the code? If not, is there a way that I can do this fairly easily...ish?