Restricting File Upload Type

The tag can be used to process user uploads, and also allows developers to restrict the upload MIME type. But these restrictions are processed after the file is uploaded, which does not makes for an intuitive and user friendly application. The solution here is to use client side JavaScript to validate the file extension before it is uploaded. (Applies to: ColdFusion 3 (or later))

Leave a Reply