Allow upload of zipped hospital price file

Created on 13 July 2023, over 1 year ago
Updated 14 July 2023, over 1 year ago

Problem/Motivation

Some hospital pricing files are huge. I am trying to use this on a site where the file is 520MB, but the hosting provider only allows uploads of up to 256MB. This is a huge problem because the regulations say that the pricing must be in a SINGLE machine readable file.

Proposed resolution

Add a validation constraint that, if a zip is uploaded, forces it to be a single archived file of one of the other allowed types. (Relying on the field widget would be less robust). Then on a preSave, extract the archived file into a new file entity and have the hpt reference that new file. The zip ends up being left as a temporary file.

User interface changes

API changes

zips can work well

Data model changes

zips can work well

πŸ“Œ Task
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States danflanagan8 St. Louis, US

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024