I'm trying to upload a 10Mb file in mysql database, the datatype of the field is LONGBLOB and I have already configured the max allowed packet in my.ini file but I still can't save the file. Files lower than 10Mb can be saved in the database so I'm wondering why it can't be saved. Are there any other places I need to check to get this to work?
max_allowed_packet = 1024M
This is how I get the data:
$data = $dbLink->real_escape_string(file_get_contents($_FILES['uploaded_file']['tmp_name']));