{"action":"opened","issue":{"url":"https://api.github.com/repos/fengyuanchen/cropperjs/issues/8","labels_url":"https://api.github.com/repos/fengyuanchen/cropperjs/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/fengyuanchen/cropperjs/issues/8/comments","events_url":"https://api.github.com/repos/fengyuanchen/cropperjs/issues/8/events","html_url":"https://github.com/fengyuanchen/cropperjs/issues/8","id":115483973,"number":8,"title":"Canvas file type","user":{"login":"sp90","id":3041602,"avatar_url":"https://avatars.githubusercontent.com/u/3041602?v=3","gravatar_id":"","url":"https://api.github.com/users/sp90","html_url":"https://github.com/sp90","followers_url":"https://api.github.com/users/sp90/followers","following_url":"https://api.github.com/users/sp90/following{/other_user}","gists_url":"https://api.github.com/users/sp90/gists{/gist_id}","starred_url":"https://api.github.com/users/sp90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sp90/subscriptions","organizations_url":"https://api.github.com/users/sp90/orgs","repos_url":"https://api.github.com/users/sp90/repos","events_url":"https://api.github.com/users/sp90/events{/privacy}","received_events_url":"https://api.github.com/users/sp90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-06T11:02:07Z","updated_at":"2015-11-06T11:02:07Z","closed_at":null,"body":"When i try to upload my image it dosn't set the file type from the canvas:\r\n\r\n```javascript\r\n                              cropper.getCroppedCanvas().toBlob(function (blob) {\r\n\t\t\t\t\tvar file = new File([blob], \"some_random_file_name.jpg\");\r\n\t\t\t\t \tconsole.log(\"file: \", file);\r\n\r\n\t\t\t\t \tUpload\r\n\t\t            \t          .upload({\r\n\t\t\t\t            url: '/wp-json/add_posts/v1/add_post_image',\r\n\t\t\t\t            file: file,\r\n\t\t\t\t            headers: {\r\n\t\t\t\t            \t'Content-Type': 'image/jpg'\r\n\t\t\t\t            }\r\n\t\t\t\t        })\r\n\t\t\t\t        .progress(function (evt) {\r\n\t\t\t\t        \t// Set progress\r\n\t\t\t            \tconsole.log(\"parseInt(100.0 * evt.loaded / evt.total): \", parseInt(100.0 * evt.loaded / evt.total));\r\n\t\t\t\t        })\r\n\t\t\t\t        .success(function (data, status, headers, config) {\r\n\t\t\t            \tconsole.log(\"data: \", data);\r\n\t\t\t            \tconsole.log(\"headers: \", headers);\r\n\t\t\t            \tconsole.log(\"config: \", config);\r\n\t\t\t\t        });\r\n\t\t\t\t});\r\n```"}}