jQuery-File-Upload clean FormData with autoNumeric

jQuery-File-Upload clean FormData with autoNumeric

Hello Everyone, 

I need a little help. I`m use the jQuery-File-Upload plugin to upload files to my server with additional Formdata

Now i want format the input values with autoNumeric but it have to send clean (without any delimiters) to the server.

How can i clean the from values bevor sending?

This is how i try it:

  1. function initAutoFileUpload() {
  2.         'use strict'
  3.         $('#fu-my-auto-upload').fileupload({

  4.             url: baseadd + '/ImportReichweite/Excel',
  5.             autoUpload: true,
  6.             dataType: 'json',
  7.             fromData: $('my-form').autoNumeric('getString'),
  8.             contentType: false,
  9.             processData: false,
  10.             
  11.             add: function (e, data) {
  12.                 
  13.                 self.DeleteKurve()
  14.                 $.each(data.files, function (index, file) {
  15.                     $('.file_name').html(file.name);
  16.                 });
  17.                
  18.                 var progress = parseInt(data.loaded / data.total * 100, 10);
  19.                 $(".progress").addClass("progress-striped active");
  20.                 $(".progress .progress-bar").css("width", "0%");

  21.                
  22.                 var jqXHR = data.submit()

  23.                     //clean the form data here 
  24.                     var ha = $('#My-Form').autoNumeric('getString');
  25.                     data.fromData = ha;
  26.                    .success(function (data, textStatus, jqXHR) {
  27.                        if (data.isUploaded) {
  28.                        }
  29.                        else {
  30.                        }
  31.                    })
  32.                    .error(function (data, textStatus, errorThrown) {

  33.                        if (typeof (data) != 'undefined' || typeof (textStatus) != 'undefined' || typeof (errorThrown) != 'undefined') {
  34.                            alert(textStatus + errorThrown + data);
  35.                        
  36.                        }
  37.                    })

  38.                 ;
  39.             },
  40.             progress: function (e, data) {
  41.                 var progress = parseInt(data.loaded / data.total * 100, 10);
  42.                 $('.progress .progress-bar').css('width', progress + '%');
  43.                 //$("#fu-my-auto-upload").click(function () {
  44.                 //    $("#My-Form").valid();

  45.                 //});
  46.             },
  47.             //processdone: function (e, data) {
  48.             //    data.context.find('.start').button('enable');
  49.             //},
  50.             done: function (e, data) {
  51.                 $(".progress").removeClass("progress-striped active"); // we're done

  52.                 //debugger;
  53.                 self.GR.removeAll();
  54.                 var test;
  55.                 $.getJSON(PointsUri,
  56.                     function (data) {
  57.                         dataType: 'json'
  58.                        
  59.                     
  60.                     
  61.                    for (var i = 0; i < data.length; i++){
  62.                    
  63.                        self.GR.push(data[i].GR)
  64.                        self.Points.push(data[i].reichw)
  65.                        
  66.                     }
  67.                     
  68.                     }
  69.                 )},
  70.             fail: function (event, data) {
  71.                 if (data.files[0].error) {
  72.                     alert(data.files[0].error);
  73.                 }
  74.             }
  75.         });
  76.     }