Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrupted files on s3 #1

Open
stweet4000 opened this issue Dec 4, 2015 · 0 comments
Open

corrupted files on s3 #1

stweet4000 opened this issue Dec 4, 2015 · 0 comments

Comments

@stweet4000
Copy link

hi trying your fork still gives me corrupted files am i doing something wrong here ?

   $scope.uploadThis = function(item){
        $timeout(function() {
            dpd.bucket.get(item.file.name, {
                signedUrl: 'Put',
                ContentType: item.file.type
            }, function(signedUrl, err){
                item.url= signedUrl;
                item.upload();
               // $scope.uploadIt(item);  working function
            })
        })
    }

Using this function insted of upload it works, but then rest of angular-file-upload satus and so one.. arnt updatet

    $scope.uploadIt = function(item){
        console.log("step2")
        $http({
            method: 'PUT',
            url: item.url,
            headers: {
                'Content-Type': item.file.type
            },
            data: item._file
        })
            .then(function(res) {
                console.log(res);
                console.log("step3")
            });
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant