mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-26 16:20:19 -04:00
Merge pull request #765 from alphagov/fix-large-file-uploads
Fix 500 being thrown when uploading large files
This commit is contained in:
@@ -158,7 +158,7 @@ class Spreadsheet():
|
||||
|
||||
@staticmethod
|
||||
def normalise_newlines(file_content):
|
||||
return '\r\n'.join(file_content.getvalue().decode('utf-8').splitlines())
|
||||
return '\r\n'.join(file_content.read().decode('utf-8').splitlines())
|
||||
|
||||
@classmethod
|
||||
def from_rows(cls, rows, filename=''):
|
||||
|
||||
Reference in New Issue
Block a user