Merge pull request #496 from alphagov/fix-large-file-uploads

Fix bug with large file uploads
This commit is contained in:
Chris Hill-Scott
2016-04-25 15:32:37 +01:00

View File

@@ -110,7 +110,7 @@ def send_messages(service_id, template_id):
service_id,
{
'file_name': form.file.data.filename,
'data': form.file.data.getvalue().decode('utf-8')
'data': form.file.data.read().decode('utf-8')
},
current_app.config['AWS_REGION']
)