title: Adding Video and Image upload to form in codeigniter
body: <p>This is more of an abstract question than a specific coding issue.</p>
  
  <p>I have a facebook app built using codeigniter. It's essentially just for data capture. The user completes a form that is stored in a database. </p>
  
  <p>However, On the form there is the option to upload a video with their submission or upload an image. Neither of the two are compulsory, just the text fields, such as name, email etc.</p>
  
  <p>My question is what is the best way to go about this? Does the user upload their video and or image before they click submit. Or on submit do i upload what ever is in the file fields? </p>
  
  <p>Thanks</p>