{"action":"created","issue":{"url":"https://api.github.com/repos/mailru/FileAPI/issues/325","labels_url":"https://api.github.com/repos/mailru/FileAPI/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/mailru/FileAPI/issues/325/comments","events_url":"https://api.github.com/repos/mailru/FileAPI/issues/325/events","html_url":"https://github.com/mailru/FileAPI/issues/325","id":67810006,"number":325,"title":"How to prevent multipart/form-data uploading?","user":{"login":"skotchio","id":1432812,"avatar_url":"https://avatars.githubusercontent.com/u/1432812?v=3","gravatar_id":"","url":"https://api.github.com/users/skotchio","html_url":"https://github.com/skotchio","followers_url":"https://api.github.com/users/skotchio/followers","following_url":"https://api.github.com/users/skotchio/following{/other_user}","gists_url":"https://api.github.com/users/skotchio/gists{/gist_id}","starred_url":"https://api.github.com/users/skotchio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skotchio/subscriptions","organizations_url":"https://api.github.com/users/skotchio/orgs","repos_url":"https://api.github.com/users/skotchio/repos","events_url":"https://api.github.com/users/skotchio/events{/privacy}","received_events_url":"https://api.github.com/users/skotchio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2015-04-11T17:25:46Z","updated_at":"2015-04-12T09:45:46Z","closed_at":null,"body":"I'm using `client_body_in_file_only` directive on my nginx that does't support `multipart/form-data` data. How could I switch to binary uploading instead `multipart/form-data` one?\r\n\r\nI use the following js:\r\n\r\n    onImageChange: function (e, data) {\r\n\r\n       var files = FileAPI.getFiles(e.target);\r\n\r\n       FileAPI.upload({\r\n         uploadRetry: 3,\r\n         autoUpload: true,\r\n         url: \"192.168.56.101:3001\",\r\n         files: { file: files[0] }\r\n       });\r\n    }\r\n        \r\nThe request headers are the following:\r\n\r\n    Accept:*/*\r\n    Accept-Encoding:gzip, deflate\r\n    Cache-Control:no-cache\r\n    Connection:keep-alive\r\n    Content-Length:131394\r\n    Content-Type:multipart/form-data; boundary=----WebKitFormBoundaryguxYcgdo7JfCsexo\r\n    Host:192.168.56.101:3001\r\n    Origin:http://192.168.56.101:3001\r\n    Pragma:no-cache\r\n    Referer:http://192.168.56.101:3001/upload\r\n    X-Requested-With:XMLHttpRequest\r\n\r\n    Request Payload\r\n    ------WebKitFormBoundaryguxYcgdo7JfCsexo\r\n    Content-Disposition: form-data; name=\"file\"; filename=\"47132788_138.jpg\"\r\n    Content-Type: image/jpeg\r\n\r\n\r\n    ------WebKitFormBoundaryguxYcgdo7JfCsexo\r\n    Content-Disposition: form-data; name=\"_file\"\r\n\r\n    47132788_138.jpg\r\n    ------WebKitFormBoundaryguxYcgdo7JfCsexo--"},"comment":{"url":"https://api.github.com/repos/mailru/FileAPI/issues/comments/92025139","html_url":"https://github.com/mailru/FileAPI/issues/325#issuecomment-92025139","issue_url":"https://api.github.com/repos/mailru/FileAPI/issues/325","id":92025139,"user":{"login":"skotchio","id":1432812,"avatar_url":"https://avatars.githubusercontent.com/u/1432812?v=3","gravatar_id":"","url":"https://api.github.com/users/skotchio","html_url":"https://github.com/skotchio","followers_url":"https://api.github.com/users/skotchio/followers","following_url":"https://api.github.com/users/skotchio/following{/other_user}","gists_url":"https://api.github.com/users/skotchio/gists{/gist_id}","starred_url":"https://api.github.com/users/skotchio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skotchio/subscriptions","organizations_url":"https://api.github.com/users/skotchio/orgs","repos_url":"https://api.github.com/users/skotchio/repos","events_url":"https://api.github.com/users/skotchio/events{/privacy}","received_events_url":"https://api.github.com/users/skotchio/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T09:45:46Z","updated_at":"2015-04-12T09:45:46Z","body":"Yes I know. But I like your library and want to use in production. Did you open the image that I've uploaded to http://www.filedropper.com/0000000218 ?"}}