{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/600","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/600/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/600/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/600/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/600","id":135697750,"number":600,"title":"support of base64 string in S3Adapter","user":{"login":"mchun","id":7677094,"avatar_url":"https://avatars.githubusercontent.com/u/7677094?v=3","gravatar_id":"","url":"https://api.github.com/users/mchun","html_url":"https://github.com/mchun","followers_url":"https://api.github.com/users/mchun/followers","following_url":"https://api.github.com/users/mchun/following{/other_user}","gists_url":"https://api.github.com/users/mchun/gists{/gist_id}","starred_url":"https://api.github.com/users/mchun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mchun/subscriptions","organizations_url":"https://api.github.com/users/mchun/orgs","repos_url":"https://api.github.com/users/mchun/repos","events_url":"https://api.github.com/users/mchun/events{/privacy}","received_events_url":"https://api.github.com/users/mchun/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/parse-server/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-02-23T10:29:32Z","updated_at":"2016-03-12T02:52:23Z","closed_at":"2016-03-12T02:52:23Z","body":"In the current file adapter of api.parse.com, I can see that both file and base64 string are supported.\r\n\r\ne.g. data =  {\"_ContentType\":\"image/jpeg\",\"base64\":\"/9j/4AAQSkZJRgABAQAAAQ...........\"}\r\nand also\r\ndata = $(\"#ulPhoto1\")[0].files[0];\r\n\r\nI do rely on this a lot when performing client-side resize image function.\r\nCan we do the same in the S3Adapter?\r\n\r\nP.S. This is the code I used to upload image.\r\n\r\n```\r\n$.ajax({\r\n      type: \"POST\",\r\n      beforeSend: function(request) {\r\n        request.setRequestHeader(\"X-Parse-Application-Id\", 'myAppId');\r\n        request.setRequestHeader(\"X-Parse-REST-API-Key\", 'myRestAPIKey');\r\n        request.setRequestHeader(\"Content-Type\", \"image/jpeg\");\r\n      },\r\n      url: \"http://localhost:1337/parse/files/photo.jpg\",\r\n      data: data,\r\n      processData: false,\r\n      contentType: false,\r\n      success: function(photo) {\r\n           ......\r\n      },\r\n      error: function(jqXHR, textStatus, errorThrown)  {\r\n           ......\r\n      }\r\n    });\r\n```"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/195645556","html_url":"https://github.com/ParsePlatform/parse-server/issues/600#issuecomment-195645556","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/600","id":195645556,"user":{"login":"flovilmart","id":364568,"avatar_url":"https://avatars.githubusercontent.com/u/364568?v=3","gravatar_id":"","url":"https://api.github.com/users/flovilmart","html_url":"https://github.com/flovilmart","followers_url":"https://api.github.com/users/flovilmart/followers","following_url":"https://api.github.com/users/flovilmart/following{/other_user}","gists_url":"https://api.github.com/users/flovilmart/gists{/gist_id}","starred_url":"https://api.github.com/users/flovilmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flovilmart/subscriptions","organizations_url":"https://api.github.com/users/flovilmart/orgs","repos_url":"https://api.github.com/users/flovilmart/repos","events_url":"https://api.github.com/users/flovilmart/events{/privacy}","received_events_url":"https://api.github.com/users/flovilmart/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T02:52:23Z","updated_at":"2016-03-12T02:52:23Z","body":"@mchun we fixed a few things with the content type in recent releases, and I just checked, the base64 is properly restored as a buffer in the early middlewares. \r\nPlease retry on 2.1.6 and I'll reopen if needed."}}