You need to grant the MySQL FILE privilege to the user. Note that this is a GLOBAL permission. It allows the user to access all files that MySQL has permissions to.

You can set it with the command:

GRANT FILE ON *.* TO person@'<host>' ;