{"action":"created","issue":{"url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/186","repository_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader","labels_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/186/labels{/name}","comments_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/186/comments","events_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/186/events","html_url":"https://github.com/LPology/Simple-Ajax-Uploader/issues/186","id":206506530,"node_id":"MDU6SXNzdWUyMDY1MDY1MzA=","number":186,"title":"File size is always represented in KB.. ","user":{"login":"MrCaspan","id":19710296,"node_id":"MDQ6VXNlcjE5NzEwMjk2","avatar_url":"https://avatars1.githubusercontent.com/u/19710296?v=4","gravatar_id":"","url":"https://api.github.com/users/MrCaspan","html_url":"https://github.com/MrCaspan","followers_url":"https://api.github.com/users/MrCaspan/followers","following_url":"https://api.github.com/users/MrCaspan/following{/other_user}","gists_url":"https://api.github.com/users/MrCaspan/gists{/gist_id}","starred_url":"https://api.github.com/users/MrCaspan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrCaspan/subscriptions","organizations_url":"https://api.github.com/users/MrCaspan/orgs","repos_url":"https://api.github.com/users/MrCaspan/repos","events_url":"https://api.github.com/users/MrCaspan/events{/privacy}","received_events_url":"https://api.github.com/users/MrCaspan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-02-09T13:37:05Z","updated_at":"2018-06-22T13:12:59Z","closed_at":null,"author_association":"NONE","body":"Is there any way that you can add a function that will give the proper reduces file size? 109834K is confusing for an end user instead of 109 MB "},"comment":{"url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/comments/399437900","html_url":"https://github.com/LPology/Simple-Ajax-Uploader/issues/186#issuecomment-399437900","issue_url":"https://api.github.com/repos/LPology/Simple-Ajax-Uploader/issues/186","id":399437900,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTQzNzkwMA==","user":{"login":"JubaDZ","id":16851219,"node_id":"MDQ6VXNlcjE2ODUxMjE5","avatar_url":"https://avatars0.githubusercontent.com/u/16851219?v=4","gravatar_id":"","url":"https://api.github.com/users/JubaDZ","html_url":"https://github.com/JubaDZ","followers_url":"https://api.github.com/users/JubaDZ/followers","following_url":"https://api.github.com/users/JubaDZ/following{/other_user}","gists_url":"https://api.github.com/users/JubaDZ/gists{/gist_id}","starred_url":"https://api.github.com/users/JubaDZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JubaDZ/subscriptions","organizations_url":"https://api.github.com/users/JubaDZ/orgs","repos_url":"https://api.github.com/users/JubaDZ/repos","events_url":"https://api.github.com/users/JubaDZ/events{/privacy}","received_events_url":"https://api.github.com/users/JubaDZ/received_events","type":"User","site_admin":false},"created_at":"2018-06-22T13:12:59Z","updated_at":"2018-06-22T13:12:59Z","author_association":"NONE","body":"```\r\nvar\r\nlang: 'en',\r\n----------------------------------------------------------------------------------------\r\nss.formatBytes = function(bytes,lang) {\r\n\r\n\tif(lang==='ar')\r\n\t\tvar sizes = [\"بايت\", \"كيلو\", \"ميقا\",\"جيقا\",\"تيرا\"]; \r\n\telse\r\n\t\tvar sizes = [\"Bytes\", \"KB\", \"MB\",\"GB\",\"TB\"]; \r\n\t\r\n   var k = 1024;\r\n   var i = Math.floor(Math.log(bytes) / Math.log(k));\r\n   return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i+1];\r\n};\r\n----------------------------------------------------------------------------------------\r\nif ( size && !self._sizeFlags[key] ) {\r\n                            if ( sizeBox ) {\r\n                                sizeBox.innerHTML = ss.formatBytes(size,this._opts.lang);\r\n\r\n                            }\r\n----------------------------------------------------------------------------------------\r\n // Inject file size into size box\r\n        if ( sizeBox ) {\r\n            sizeBox.innerHTML = ss.formatBytes(fileObj.size,this._opts.lang);\r\n        }\r\n```"}}
{"actor":{"display_login":"JubaDZ"}}