Ionic + angular how to post photo from camera into folder or s3

How to upload/post image to folder or to amazon s3 using ionic + angularjs here my little code

.controller('CamCtrl', function ($scope) {        
     $scope.takePic = function() {
        var pictureOptions =   {
            quality: 75,
            destinationType: Camera.DestinationType.DATA_URI,
            sourceType: 1,      // 0:Photo Library, 1=Camera, 2=Saved Photo Album
            encodingType: 0,   // 0=JPG 1=PNG
            saveToPhotoAlbum: true
        }   
        navigator.camera.getPicture(onSuccess,onFail,pictureOptions);
    }


    var onSuccess = function(DATA_URI) {
        console.log(DATA_URI);
        $scope.picData = DATA_URI;
        $scope.$apply();
    };
    var onFail = function(e) {
        console.log("On fail " + e);
    }
    $scope.send = function() {   
        var myImg = $scope.picData;
        var options = new FileUploadOptions();
        options.fileKey="post";
        options.chunkedMode = false;
        var params = {};
        params.user_token = localStorage.getItem('auth_token');
        params.user_email = localStorage.getItem('email');
        options.params = params;
        var ft = new FileTransfer();
        ft.upload(myImg, encodeURI("https://example.com/posts/"), onUploadSuccess, onUploadFail, options);
    }

thanks in advance =D i am new to ionic and angular.. but very interested with it