ngCropper icon indicating copy to clipboard operation
ngCropper copied to clipboard

cannot upload new images again and again

Open azadnio opened this issue 8 years ago • 2 comments

once uploaded the Image there is now way to upload another image.

azadnio avatar Jun 19 '17 09:06 azadnio

i am also facing the same issue.. any solution for this?

ravishan110 avatar Sep 26 '17 13:09 ravishan110

may seem stupid, but it works for me

$scope.onFile = function(blob){
    if(blob){
        $scope.dataUrl = undefined;
        $timeout(function(){
                Cropper.encode((file = blob)).then(function (dataUrl){
                    $scope.dataUrl = dataUrl;
                    $timeout(showCropper);
                });},100)
    }
};

Cassie-Yu avatar Sep 28 '17 12:09 Cassie-Yu