{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/140","labels_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/140/comments","events_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/140/events","html_url":"https://github.com/ipfs/js-ipfs-api/issues/140","id":118363668,"number":140,"title":"ipfs add url wrap doesn't work","user":{"login":"jbenet","id":138401,"avatar_url":"https://avatars.githubusercontent.com/u/138401?v=3","gravatar_id":"","url":"https://api.github.com/users/jbenet","html_url":"https://github.com/jbenet","followers_url":"https://api.github.com/users/jbenet/followers","following_url":"https://api.github.com/users/jbenet/following{/other_user}","gists_url":"https://api.github.com/users/jbenet/gists{/gist_id}","starred_url":"https://api.github.com/users/jbenet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbenet/subscriptions","organizations_url":"https://api.github.com/users/jbenet/orgs","repos_url":"https://api.github.com/users/jbenet/repos","events_url":"https://api.github.com/users/jbenet/events{/privacy}","received_events_url":"https://api.github.com/users/jbenet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/js-ipfs-api/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ipfs/js-ipfs-api/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T11:36:22Z","updated_at":"2015-11-25T18:30:20Z","closed_at":null,"body":"Expected:\r\n```js\r\nipfs.add(url, {wrap: true}, cb)\r\n```\r\n would be equivalent to cli's `ipfs add -w`, preserving the last pathname."},"comment":{"url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/comments/159695116","html_url":"https://github.com/ipfs/js-ipfs-api/issues/140#issuecomment-159695116","issue_url":"https://api.github.com/repos/ipfs/js-ipfs-api/issues/140","id":159695116,"user":{"login":"Dignifiedquire","id":790842,"avatar_url":"https://avatars.githubusercontent.com/u/790842?v=3","gravatar_id":"","url":"https://api.github.com/users/Dignifiedquire","html_url":"https://github.com/Dignifiedquire","followers_url":"https://api.github.com/users/Dignifiedquire/followers","following_url":"https://api.github.com/users/Dignifiedquire/following{/other_user}","gists_url":"https://api.github.com/users/Dignifiedquire/gists{/gist_id}","starred_url":"https://api.github.com/users/Dignifiedquire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dignifiedquire/subscriptions","organizations_url":"https://api.github.com/users/Dignifiedquire/orgs","repos_url":"https://api.github.com/users/Dignifiedquire/repos","events_url":"https://api.github.com/users/Dignifiedquire/events{/privacy}","received_events_url":"https://api.github.com/users/Dignifiedquire/received_events","type":"User","site_admin":false},"created_at":"2015-11-25T18:30:20Z","updated_at":"2015-11-25T18:30:20Z","body":"The main thing to do here is extracting the filename from a given url and passing it as a parameter."}}