Day 18

Quiz

1: True or false: When you create a form that enables users to upload a file, ColdFusion automatically creates a browse box to enable users to find files on their server.
A1: False. This box is created by the <FORM> parameter TYPE=FILE. Your upload forms don't need to use ColdFusion at all, but your ACTION pages do .
2: Name three attributes used with <CFFILE>'s upload ACTION.
A2: DESTINATION, FILEFIELD, and NAMECONFLICT. You might also use the optional attribute ACCEPT, which takes a comma-list of file types that will be accepted as input.
3: Where should your upload forms and ACTION pages reside on your server? (Hint: Think "security.")
A3: In a directory that is password-protected at the server level. If you're dealing with extremely ...

Get Sams Teach Yourself ColdFusion® in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.