mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
Merge pull request #496 from alphagov/fix-large-file-uploads
Fix bug with large file uploads
This commit is contained in:
@@ -110,7 +110,7 @@ def send_messages(service_id, template_id):
|
|||||||
service_id,
|
service_id,
|
||||||
{
|
{
|
||||||
'file_name': form.file.data.filename,
|
'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']
|
current_app.config['AWS_REGION']
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user