finish ajax upload pending php handling