NationalCentreTruthReconciliation / Secure-Record-Transfer

A transfer portal incorporating CAAIS and BagIt Specifications
https://secure-record-transfer.readthedocs.io/en/latest/
4 stars 2 forks source link

Add YAML config file to control accepted file formats #152

Open danloveg opened 10 months ago

danloveg commented 10 months ago

The ACCEPTED_FILE_FORMATS setting cannot be controlled without editing the application code. The setting should be able to be controlled using a YAML file, with a format like this:

accepted_file_formats:
    Archive:
        - zip
        - 7z
        - rar
    Document:
        - doc
        - docx
    Database:
        - db
        - sqlite3
    Photo:
        - jpg
        - jpeg
        - png
        - tiff
danloveg commented 1 week ago

210 should be addressed before tackling this issue, this issue is dependent on that one.