Closed briri closed 7 months ago
Install the https://github.com/igorkasyanchuk/active_storage_validations gem and then update the Draft model to require that the image is a PDF and has a size limit.
Also add logic to process size: { unit: 'MB', value: '123' } on dataset entries of the draft JSON.
size: { unit: 'MB', value: '123' }
dataset
This work is done and has been uploaded to the react-prototype branch
Install the https://github.com/igorkasyanchuk/active_storage_validations gem and then update the Draft model to require that the image is a PDF and has a size limit.
Also add logic to process
size: { unit: 'MB', value: '123' }
ondataset
entries of the draft JSON.