Skip to content
This repository was archived by the owner on Aug 17, 2019. It is now read-only.
This repository was archived by the owner on Aug 17, 2019. It is now read-only.

Uploading an image results in an empty array and the application hanging #101

@kodie

Description

@kodie

Here is my code:

var Flickr = require("flickrapi"),
    flickrOptions = {
      "user_id": "(Hidden)",
      "api_key": "(Hidden)",
      "api_secret": "(Hidden)",
      "access_token": "(Hidden)",
      "access_token_secret": "(Hidden)",
      "permissions": "write"
    };

Flickr.authenticate(flickrOptions, function(error, flickr) {
  if (!error) {
    var uploadOptions = {
      photos: [{
        title: "test",
        photo: __dirname + "/image.png"
      }]
    };

    Flickr.upload(uploadOptions, flickrOptions, function(err, res) {
      if (!err) {
        console.log(res);
      } else { throw err; }
    });
  } else { throw error; }
});

After a couple of seconds I get [] printed out in the console and the application never finishes running so I have to hit CTRL+C to force end the app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions