MariaDB inserting mediumblob

I need to store excel files in the database.

I have tried:
INSERT INTO ibn_excel_documents (excel_filename,excel_file) VALUES (’ “.$destFileName.” ',LOAD_FILE(".$fileName.")

The app hangs without any error information.

Is there a working procedure to store files of som 0.5MB in the database?