Add checkFields function to prevent the default Upload field from failing because of missing directories