Posts

Showing posts with the label Multiple File Upload
In order to upload multiple file to the server the basic thing what we require is multiple file fields. we can do it easily in .erb file with the help of javascript. So just follow the steps and have fun. Step 1 :  create a simple html div for it.                 <div class="apply_div  " id="number_of_download_filed" >        <div class="attachment_div_text" id='div_attached_1'>Add Attachment,</div> <div class="attachment_div_field" id="div_attached_field_1"> <input id='attached_1' type='file' name='attached_1' class='event_action_attach_fields input_file_class'> </div>             </div>            <div class="apply_div ">                              <%= button_tag ' Attach another file ',  :type => 'button',  : class="attach_another_file_button"   %>             </div>