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

Usage of uploadContent() #238

Closed
vince122 opened this issue Oct 18, 2016 · 1 comment
Closed

Usage of uploadContent() #238

vince122 opened this issue Oct 18, 2016 · 1 comment

Comments

@vince122
Copy link

vince122 commented Oct 18, 2016

Hi,

I'm trying to upload images on the server with the uploadContent() method but, maybe i'm using it wrong, nothing happen when i'm using it like this :

var infoMatrix = {
    "name": "test",
    "type": "image/png",
    "rawResponse": 0,
    "onlyContentUri": 1
};

request.get('http://myimageAdress', function(err, res, body){
    matrixClient.uploadContent(body, infoMatrix);
});

Is there something wrong with the way I'm using it ?

Thanks for helping,
Vince.

@vince122
Copy link
Author

Ok... My bad... I forgot the usage of the method .done at the end of uploadContent

Sorry, you can close the issue

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