             resolve({
                        status : true,
                        path : resp.path
                    });

                  } else {

                    resolve({
                        status : false,
                        message : resp.message
                    });

                  }

                }, 200);

              },
              error : resp => {
                reject('upload fail.');
              }
            })

          });

      }
    });
    </script>
 