title: Inserting extra comma while multi upload how to avoid this
body: <p>here what i need to do for avoiding extra comma separater while upload the images.it takes one more image while upload the file.i used comma separater for the concatination.</p>
  
  <p>Controller</p>
  
  <pre><code>            $filename_new_get = "";
              $count = Input::get('count');
            for($i = 0 ; $i &lt; $count ; $i++)
  
          {
  
              $file_more = Input::file('file_more'.$i);
  
              $file_more_name = $file_more-&gt;getClientOriginalName();  
  
              $move_more_img = explode('.',$file_more_name);
  
              $filename_new =            $move_more_img[0].str_random(8).".".$move_more_img[1];
  
              $newdestinationPath = '../assets/categoryimage/';
  
              $uploadSuccess_new =Input::file('file_more'.$i)-&gt;move($newdestinationPath,$filename_new);
              $filename_new_get .= $filename_new.","; 
  
          }
  
  
       $inputs = Input::all();
  
           $file = Input::file('file');
  
           $filename = $file-&gt;getClientOriginalName();
  
           $move_img = explode('.',$filename);
  
           $filename = $move_img[0].str_random(8).".".$move_img[1];
  
           $destinationPath = '../assets/categoryimage/';
  
           $uploadSuccess = Input::file('file')-&gt;move($destinationPath,$filename);
  
           $file_name_insert = $filename . ",".$filename_new_get;
        $data=array(
                   'new_category_image'=&gt; $file_name_insert,
                   );
  </code></pre>
  
  <p>Views</p>
  
  <pre><code>&lt;div class="col-lg-8" id="img_upload"&gt;
                     &lt;input type="file"  id="file0" name="file" style="background:none;width:185px;border:none;"&gt;no files
                      &lt;div id="divTxt"&gt;&lt;/div&gt;
              &lt;p&gt;&lt;a onClick="addproductimageFormField(); return false;" style="cursor:pointer;color:#F60;width:84px;" id="add_img_btn" &gt;Add&lt;/a&gt;&lt;/p&gt; 
                     &lt;input type="hidden" id="aid" value="1"&gt;
                      &lt;input type="text" id="count" name="count" value="0"&gt;
                  &lt;/div&gt;
  </code></pre>