I am getting an access denied error when I am writing to the database

I am using this line

LOAD DATA INFILE 'upload.txt' REPLACE INTO TABLE Test FIELDS TERMINATED BY ','

I have made sure I allowed remote SQL, and I made sure to give the user all privileges.

What could be causing this error?