{"action":"closed","issue":{"url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/212","repository_url":"https://api.github.com/repos/cloudinary/cloudinary_gem","labels_url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/212/comments","events_url":"https://api.github.com/repos/cloudinary/cloudinary_gem/issues/212/events","html_url":"https://github.com/cloudinary/cloudinary_gem/issues/212","id":168465194,"number":212,"title":"401 authentication issue","user":{"login":"tettus","id":18231751,"avatar_url":"https://avatars.githubusercontent.com/u/18231751?v=3","gravatar_id":"","url":"https://api.github.com/users/tettus","html_url":"https://github.com/tettus","followers_url":"https://api.github.com/users/tettus/followers","following_url":"https://api.github.com/users/tettus/following{/other_user}","gists_url":"https://api.github.com/users/tettus/gists{/gist_id}","starred_url":"https://api.github.com/users/tettus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tettus/subscriptions","organizations_url":"https://api.github.com/users/tettus/orgs","repos_url":"https://api.github.com/users/tettus/repos","events_url":"https://api.github.com/users/tettus/events{/privacy}","received_events_url":"https://api.github.com/users/tettus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"roeeba","id":16381584,"avatar_url":"https://avatars.githubusercontent.com/u/16381584?v=3","gravatar_id":"","url":"https://api.github.com/users/roeeba","html_url":"https://github.com/roeeba","followers_url":"https://api.github.com/users/roeeba/followers","following_url":"https://api.github.com/users/roeeba/following{/other_user}","gists_url":"https://api.github.com/users/roeeba/gists{/gist_id}","starred_url":"https://api.github.com/users/roeeba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeeba/subscriptions","organizations_url":"https://api.github.com/users/roeeba/orgs","repos_url":"https://api.github.com/users/roeeba/repos","events_url":"https://api.github.com/users/roeeba/events{/privacy}","received_events_url":"https://api.github.com/users/roeeba/received_events","type":"User","site_admin":false},"assignees":[{"login":"roeeba","id":16381584,"avatar_url":"https://avatars.githubusercontent.com/u/16381584?v=3","gravatar_id":"","url":"https://api.github.com/users/roeeba","html_url":"https://github.com/roeeba","followers_url":"https://api.github.com/users/roeeba/followers","following_url":"https://api.github.com/users/roeeba/following{/other_user}","gists_url":"https://api.github.com/users/roeeba/gists{/gist_id}","starred_url":"https://api.github.com/users/roeeba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roeeba/subscriptions","organizations_url":"https://api.github.com/users/roeeba/orgs","repos_url":"https://api.github.com/users/roeeba/repos","events_url":"https://api.github.com/users/roeeba/events{/privacy}","received_events_url":"https://api.github.com/users/roeeba/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2016-07-30T12:28:35Z","updated_at":"2016-11-14T14:34:30Z","closed_at":"2016-11-14T14:34:29Z","body":"HI \n I am trying a direct upload from the browser, am able to successfully upload it , but in the callback ,when i want to display the preview after successful upload, its throwing 401 authentication required error. \n <code>\n    $(\".cloudinary-fileupload\")\n    .cloudinary_fileupload({\n      // Uncomment the following lines to enable client side image resizing and validation.\n      // Make sure cloudinary/processing is included the js file\n      // disableImageResize: false,\n      // imageMaxWidth: 800,\n      // imageMaxHeight: 600,\n      // acceptFileTypes: /(.|\\/)(gif|jpe?g|png|bmp|ico)$/i,\n      // maxFileSize: 20000000, // 20MB\n\n```\n  dropZone: \"#direct_upload\",\n  start: function (e) {\n    $(\".status\").text(\"Starting upload...\");\n  },\n  progress: function (e, data) {\n    $(\".status\").text(\"Uploading... \" + Math.round((data.loaded * 100.0) / data.total) + \"%\");\n  },\n  fail: function (e, data) {\n    $(\".status\").text(\"Upload failed\");\n  }\n})\n.off(\"cloudinarydone\").on(\"cloudinarydone\", function (e, data) {\n  $(\".status\").text(\"\");\n  var preview = $(\".preview\").html('');\n  $.cloudinary.image(data.result.public_id, {\n    format: data.result.format, width: 50, height: 50, crop: \"fit\",sign_url: true \n  }).appendTo(preview);\n\n\n  view_upload_details(data.result);\n});\n```\n\n  });\n<code>\n"}}
{"actor":{"display_login":"roeeba"}}