Adding custom meta data to the upload form
Create the form elements on /enter.
<li class="label"><label for="meta_animaltype">Type of Animal</label></li> <li><input type="text" class="fmInput required" id="meta_animaltype" name="meta_animaltype" title="Type of Animal"/></li> |
Open the sub_uploader sub-template and within the function upload(), look for the if(page === "upload") statement. You will notice that the code within this conditional helps in collecting some of the relevant upload data such as tags, geo_lat, and meta-data for the uploader. Add in your meta data details.
if($('meta_animaltype')) { swfu.addPostParam('meta[user][animaltype]',$('meta_animaltype').value); } |