{"action":"opened","issue":{"url":"https://api.github.com/repos/waynehoover/s3_direct_upload/issues/254","repository_url":"https://api.github.com/repos/waynehoover/s3_direct_upload","labels_url":"https://api.github.com/repos/waynehoover/s3_direct_upload/issues/254/labels{/name}","comments_url":"https://api.github.com/repos/waynehoover/s3_direct_upload/issues/254/comments","events_url":"https://api.github.com/repos/waynehoover/s3_direct_upload/issues/254/events","html_url":"https://github.com/waynehoover/s3_direct_upload/issues/254","id":176099768,"number":254,"title":"Filepath comes without starting slash on IE","user":{"login":"andreyluiz","id":1965897,"avatar_url":"https://avatars.githubusercontent.com/u/1965897?v=3","gravatar_id":"","url":"https://api.github.com/users/andreyluiz","html_url":"https://github.com/andreyluiz","followers_url":"https://api.github.com/users/andreyluiz/followers","following_url":"https://api.github.com/users/andreyluiz/following{/other_user}","gists_url":"https://api.github.com/users/andreyluiz/gists{/gist_id}","starred_url":"https://api.github.com/users/andreyluiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreyluiz/subscriptions","organizations_url":"https://api.github.com/users/andreyluiz/orgs","repos_url":"https://api.github.com/users/andreyluiz/repos","events_url":"https://api.github.com/users/andreyluiz/events{/privacy}","received_events_url":"https://api.github.com/users/andreyluiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-09T20:18:09Z","updated_at":"2016-09-09T20:18:09Z","closed_at":null,"body":"Hi guys.\r\n\r\nI'm using s3_direct_upload as follows:\r\n\r\n`gem 's3_direct_upload', git: 'https://github.com/waynehoover/s3_direct_upload', ref: '1d633125cf39c04ae30c80f8e1765f21b191b02a'`\r\n\r\n#192 is the referenced PR in my Gemfile.\r\n\r\nMy problem is related to the starting slash in the `filepath` property of the object passed in the callback `s3_upload_complete`.\r\n\r\nIn Chrome If I try to upload the image Screenshot.png, the returning object will look like this:\r\n```json\r\n{\r\n  \"url\": \"https://dk9suync0k2va.cloudfront.net/cms%2Ffiles%2F1%2F1473450279Screenshot.png\",\r\n  \"filepath\": \"/cms%2Ffiles%2F1%2F1473450279Screenshot.png\",\r\n  \"filename\": \"Screenshot.png\",\r\n  \"filesize\": 63731,\r\n  \"filetype\": \"image/png\",\r\n  \"unique_id\": \"1uvstno23cbhcr4c\"\r\n}\r\n```\r\n\r\nNotice the starting slash in the `filepath` property.\r\n\r\nIf I upload the exact same file in Internet Explorer, the returning object will look like this:\r\n```json\r\n{\r\n  \"url\": \"https:\\/\\/dk9suync0k2va.cloudfront.netcms%2Ffiles%2F1%2F1473445422Screenshot.jpg\",\r\n  \"filepath\": \"cms%2Ffiles%2F1%2F1473445422Screenshot.jpg\",\r\n  \"filename\": \"Screenshot.jpg\",\r\n  \"filesize\": 33394,\r\n  \"filetype\": \"image\\/jpeg\",\r\n  \"unique_id\": \"xewrzus9pe2u\"\r\n}\r\n```\r\n\r\nNotice the `filepath` property again. It comes without the starting slash.\r\n\r\nDo you guys know if there is a PR where it was fixed?\r\n\r\nThank's."}}
{"actor":{"display_login":"andreyluiz"}}