{"action":"created","issue":{"url":"https://api.github.com/repos/23/resumable.js/issues/304","repository_url":"https://api.github.com/repos/23/resumable.js","labels_url":"https://api.github.com/repos/23/resumable.js/issues/304/labels{/name}","comments_url":"https://api.github.com/repos/23/resumable.js/issues/304/comments","events_url":"https://api.github.com/repos/23/resumable.js/issues/304/events","html_url":"https://github.com/23/resumable.js/issues/304","id":151144929,"number":304,"title":"Relative Path become out of sync with certain folders being drag/dropped","user":{"login":"nickdatum","id":18681774,"avatar_url":"https://avatars.githubusercontent.com/u/18681774?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdatum","html_url":"https://github.com/nickdatum","followers_url":"https://api.github.com/users/nickdatum/followers","following_url":"https://api.github.com/users/nickdatum/following{/other_user}","gists_url":"https://api.github.com/users/nickdatum/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdatum/subscriptions","organizations_url":"https://api.github.com/users/nickdatum/orgs","repos_url":"https://api.github.com/users/nickdatum/repos","events_url":"https://api.github.com/users/nickdatum/events{/privacy}","received_events_url":"https://api.github.com/users/nickdatum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-26T14:08:45Z","updated_at":"2016-05-10T07:25:27Z","closed_at":null,"body":"If you take a look at this JS Fiddle and drag the folder attached (extract from the zip first) to the black box, and make sure you check the Javascript console, you will see the relative paths being reported incorrectly:\r\n\r\nhttps://jsfiddle.net/ad3q077k/4/\r\n\r\nFolder drag/drop support is in Chrome, so please test using this browser.\r\n\r\n[Assets.zip](https://github.com/23/resumable.js/files/236744/Assets.zip)\r\n\r\nI believe the issue occurs in resumable.js around line 285, as this is an asynchronous callback and the JS continues execution and over-writes the path variable later down the code (but the asynchronous callback doesn't appear to execute in time, before the path changes."},"comment":{"url":"https://api.github.com/repos/23/resumable.js/issues/comments/218079110","html_url":"https://github.com/23/resumable.js/issues/304#issuecomment-218079110","issue_url":"https://api.github.com/repos/23/resumable.js/issues/304","id":218079110,"user":{"login":"nickdatum","id":18681774,"avatar_url":"https://avatars.githubusercontent.com/u/18681774?v=3","gravatar_id":"","url":"https://api.github.com/users/nickdatum","html_url":"https://github.com/nickdatum","followers_url":"https://api.github.com/users/nickdatum/followers","following_url":"https://api.github.com/users/nickdatum/following{/other_user}","gists_url":"https://api.github.com/users/nickdatum/gists{/gist_id}","starred_url":"https://api.github.com/users/nickdatum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nickdatum/subscriptions","organizations_url":"https://api.github.com/users/nickdatum/orgs","repos_url":"https://api.github.com/users/nickdatum/repos","events_url":"https://api.github.com/users/nickdatum/events{/privacy}","received_events_url":"https://api.github.com/users/nickdatum/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T07:25:27Z","updated_at":"2016-05-10T07:25:27Z","body":"I believe I've been able to fix this now"}}