This fix changes the processing of file fields so that the processing of the filename only occurs when we have a sucessfully file upload. Otherwise the processing was replacing any existing uploaded file paths with an empty string. This leads to the bug where creating a new revision of a programme removes any uploaded files. See https://trello.com/c/Os5qlBeA/249-programmes-plant-programme-specifications-upload-error
This fix changes the processing of file fields so that the processing of the filename only occurs when we have a sucessfully file upload. Otherwise the processing was replacing any existing uploaded file paths with an empty string. This leads to the bug where creating a new revision of a programme removes any uploaded files. See https://trello.com/c/Os5qlBeA/249-programmes-plant-programme-specifications-upload-error