Check the file was uploaded when importing a CSV. Can probably convert this into a function at a later date.