anchor.diff:                      file_info.append('file', files[files_cur]);
                       file_info.append('parent_id', id);
                       file_info.append('main_name', colors[id_c].main_picture);
  +                    console.log(file_info);
                       $.ajax({
                           url: "/product/new/image",
                           type: "POST",
  
positive.code:         var limit_n = rows.length;
          var current_n = 0;
  
          request(rows[current_n]);
  
          function request(row) {
  
              var id_row = $(row).data('idRow');
  
              var logos_arr = [];
  
negative.code:         var holder = null;
          var colors_tt = colors_g[id];
          colors_g[id] = {cur_id: 0, colors: [], single: $('#only_photo').is(':checked')};
          var bTitle = !!$(modal).find('.color_row').find('input[id="title"]').val();
          var bPrice = !!$(modal).find('.color_row').find('input[id="price"]').val();
          //var bColor = !!$(modal).find('.color_row').find('input[id="code_hex"]').val();
          var bStock = !!$(modal).find('.color_row').find('input[id="stock_level"]').val();
          var bFiles = $(modal).find('.color_row').find('input[id="file"]')[0].files == 0 ? false : true;
  
          if(bTitle && bPrice && bStock && bFiles) {
              if (colors_tt) {
                  holder = colors_tt.colors;
                  colors_g[id] = {cur_id: colors_tt.cur_id, colors: [], single: $('#only_photo').is(':checked')};
              }
              for (var i = 0; i < rows.length; i++) {
                  if (rows[i].dataset.ocupaidUse === 'false') {
                      colors_g[id].colors.push({
                          id: colors_g[id].cur_id,
                          title: $(rows[i]).find('input[id="title"]').val(),
                          price: $(rows[i]).find('input[id="price"]').val(),
                          color: $(rows[i]).find('input[id="code_hex"]').val(),
  