O'Reilly logo

Railo 3 Beginner’s Guide by Mark Drew

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - uploading a video

  1. Now that we are logged in and ready to upload a video, let's create a form for the user to do this. Add a template named upload.cfm in your videoshare folder and add the following code:
    <cf_layout section="Upload Video"> <cfparam name="FORM.title" default=""> <cfoutput> <h1 id="upload_video">Upload Video</h1> <p>In this section you can upload a video</p> <form action="upload_video.cfm" method="post" enctype="multipart/form-data"> <div class="input"> <label for="title">Title</label> <input type="text" name="title" value="#form.title#" id="title"> </div> <div class="input"> <label for="video">Video</label> <input type="file" name="video" id="video"> </div> <p><input type="submit" value="Upload &rarr;"></p> </form> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required