{"action":"created","issue":{"url":"https://api.github.com/repos/Miserlou/django-zappa/issues/87","repository_url":"https://api.github.com/repos/Miserlou/django-zappa","labels_url":"https://api.github.com/repos/Miserlou/django-zappa/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/Miserlou/django-zappa/issues/87/comments","events_url":"https://api.github.com/repos/Miserlou/django-zappa/issues/87/events","html_url":"https://github.com/Miserlou/django-zappa/issues/87","id":161757385,"number":87,"title":"S3 upload unusual issue","user":{"login":"aaronleese","id":81742,"avatar_url":"https://avatars.githubusercontent.com/u/81742?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronleese","html_url":"https://github.com/aaronleese","followers_url":"https://api.github.com/users/aaronleese/followers","following_url":"https://api.github.com/users/aaronleese/following{/other_user}","gists_url":"https://api.github.com/users/aaronleese/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronleese/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronleese/subscriptions","organizations_url":"https://api.github.com/users/aaronleese/orgs","repos_url":"https://api.github.com/users/aaronleese/repos","events_url":"https://api.github.com/users/aaronleese/events{/privacy}","received_events_url":"https://api.github.com/users/aaronleese/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-22T18:47:19Z","updated_at":"2016-11-20T10:00:37Z","closed_at":null,"body":"Hey all - \n\nFirst off, great job on all of this! I've been loving Zappa, and can't wait to migrate all of my applications over to using it.\n\nBut - I currently have an issue that I would love some clarity on.\n\nI've integrated Boto and S3 static and media hosting, as described here:\nhttps://www.caktusgroup.com/blog/2014/11/10/Using-Amazon-S3-to-store-your-Django-sites-static-and-media-files/\n\nIt works quite well, but there is some weirdness when deployed with Zappa.\n\nSpecifically, when running locally, all files are uploaded as expected to the S3 servers (I'm just testing through the /admin console).\n\nWhen running on a Zappa deploy, some uploaded files are mangled (they end up being twice as large as they should be). Generally, I am trying to upload audio files ... and the result is an invalid file.\nText files work fine though ... which leads me to believe it has something to do with escape characters getting added? Since the audio files are non-ASCII in nature.\n\nSo ... to sum it up:\n\nRunning at **localHost:8000, and using /admin** ... I can upload FileFields to S3:\n- **_Text files work fine_**\n- **_Audio files work fine_**\n\nRunning **remotely as a Zappa deploy, and using /admin** ... I can upload FileFields to S3:\n- **_Text files work fine_**\n- **_Audio files get horribly destroyed, coming out at about twice the normal file-size_**\n\nAlso, running the same code on an EC2 instance works just fine ... so it must be something with the fact that it is running serverless?\n\nNot sure ... but hoping someone here might have an idea :)\n"},"comment":{"url":"https://api.github.com/repos/Miserlou/django-zappa/issues/comments/261769008","html_url":"https://github.com/Miserlou/django-zappa/issues/87#issuecomment-261769008","issue_url":"https://api.github.com/repos/Miserlou/django-zappa/issues/87","id":261769008,"user":{"login":"anush0247","id":3916465,"avatar_url":"https://avatars.githubusercontent.com/u/3916465?v=3","gravatar_id":"","url":"https://api.github.com/users/anush0247","html_url":"https://github.com/anush0247","followers_url":"https://api.github.com/users/anush0247/followers","following_url":"https://api.github.com/users/anush0247/following{/other_user}","gists_url":"https://api.github.com/users/anush0247/gists{/gist_id}","starred_url":"https://api.github.com/users/anush0247/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anush0247/subscriptions","organizations_url":"https://api.github.com/users/anush0247/orgs","repos_url":"https://api.github.com/users/anush0247/repos","events_url":"https://api.github.com/users/anush0247/events{/privacy}","received_events_url":"https://api.github.com/users/anush0247/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T10:00:37Z","updated_at":"2016-11-20T10:00:37Z","body":"@aaronleese please refer https://github.com/Miserlou/Zappa/issues/80"}}
{"actor":{"display_login":"anush0247"}}