function image_upload(req) {

  app.preloader.show();

  $.ajax({

    type: "POST",

    url: base_url + 'image_upload',

    data: req,

    success: (res) => {

      if (res.success) {

        app.preloader.hide();

        app.dialog.alert('Update/Upload Image Successfully', 'Upluad Image');

        if(req.tbl=='member') {

          set_localstorage('member_img',res.data);

          account_image_reload();

        }

      } else {

        app.preloader.hide();

        app.dialog.alert(res.message, 'Upload Image Error');

      }

    }

  })

}