diff --git a/app/main/views/send.py b/app/main/views/send.py index 6773dca08..89d10c5f8 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -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'] )