mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-24 01:11:15 -04:00
This is re-fixing a bug which was re-introduced when adding the `Spreadsheet` class in1409ca36ca. It was previously fixed in19662d8329: > Fix bug with large file uploads > > Depending on the size of the uploaded file, Flask will temporarily store > it in different ways. This means that it comes back as a `TempFile` if > the file is roughly <500k and as `BytesIO` if the file is larger. > > `TempFile` supports the `.getvalue()` method, but `BytesIO` does not. > Both support the `.read()` method, so this commit changes to use that > instead.